diff options
author | Christian Zoffoli <xmerlin@gentoo.org> | 2005-03-13 13:35:30 +0000 |
---|---|---|
committer | Christian Zoffoli <xmerlin@gentoo.org> | 2005-03-13 13:35:30 +0000 |
commit | e287d6d669cfea0d227372804eab02c58ca50e4a (patch) | |
tree | d0eb6ccab3ab2bc50d6b3d4eba6fe4fef9d1604e /sys-cluster/drbd/files | |
parent | new upstream release (diff) | |
download | gentoo-2-e287d6d669cfea0d227372804eab02c58ca50e4a.tar.gz gentoo-2-e287d6d669cfea0d227372804eab02c58ca50e4a.tar.bz2 gentoo-2-e287d6d669cfea0d227372804eab02c58ca50e4a.zip |
fixed device check/creation closed bug #84871
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-cluster/drbd/files')
-rwxr-xr-x | sys-cluster/drbd/files/drbd-0.7-init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-cluster/drbd/files/drbd-0.7-init b/sys-cluster/drbd/files/drbd-0.7-init index 033884a35626..02e3bba1519c 100755 --- a/sys-cluster/drbd/files/drbd-0.7-init +++ b/sys-cluster/drbd/files/drbd-0.7-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 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-0.7-init,v 1.3 2005/03/01 12:11:40 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-0.7-init,v 1.4 2005/03/13 13:35:30 xmerlin Exp $ opts="${opts} reload" @@ -27,8 +27,8 @@ create_devices() { for RESOURCE in $RESOURCES; do DEVICE=`$DRBDADM sh-dev $RESOURCE` - if [ ! -f ${DEVICE} ]; then - mknod $DEVICE b 147 ${RESOURCE/drbd/} + if [ ! -b ${DEVICE} ]; then + mknod $DEVICE b 147 ${DEVICE/\/dev\/drbd\/} fi done } |