diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-24 06:13:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-24 07:12:35 +0000 |
commit | 63820d0da622cfe314620a53d2fbc3d76a127a94 (patch) | |
tree | 3097a3a68bde4ffaaf7ceda3df48f1c1878d6c41 /testing/drbd/drbd.initd | |
parent | b62134eb5ddc6ae780dc5ad1bc2e6b3743699233 (diff) | |
download | aports-63820d0da622cfe314620a53d2fbc3d76a127a94.tar.bz2 aports-63820d0da622cfe314620a53d2fbc3d76a127a94.tar.xz |
testing/drbd: upgrade to 8.4.2
Diffstat (limited to 'testing/drbd/drbd.initd')
-rw-r--r-- | testing/drbd/drbd.initd | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/drbd/drbd.initd b/testing/drbd/drbd.initd index 48f9e19fee..d5ce7d8e32 100644 --- a/testing/drbd/drbd.initd +++ b/testing/drbd/drbd.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.7 2011/12/04 13:07:20 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.8 2013/01/17 19:09:04 robbat2 Exp $ extra_started_commands="reload" @@ -117,12 +117,12 @@ stop() { if ! grep -q '^/dev/drbd' /proc/mounts &>/dev/null; then if [ -e ${PROC_DRBD} ]; then ${DRBDADM} down all + ret=$? sleep 3 - if grep -q '^drbd' /proc/modules ; then - ${RMMOD} drbd - fi + if [ -e /proc/modules ] && grep -q '^drbd' /proc/modules ; then + ${RMMOD} drbd + fi fi - ret=$? eend $ret return $ret else |