summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/drbd/files/drbd-0.7-init')
-rwxr-xr-xsys-cluster/drbd/files/drbd-0.7-init6
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
}