summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2005-03-13 13:35:30 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2005-03-13 13:35:30 +0000
commite287d6d669cfea0d227372804eab02c58ca50e4a (patch)
treed0eb6ccab3ab2bc50d6b3d4eba6fe4fef9d1604e
parentnew upstream release (diff)
downloadgentoo-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)
-rw-r--r--sys-cluster/drbd/ChangeLog6
-rwxr-xr-xsys-cluster/drbd/files/drbd-0.7-init6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog
index a2853e9e7efc..6196830b6883 100644
--- a/sys-cluster/drbd/ChangeLog
+++ b/sys-cluster/drbd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/drbd
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.27 2005/03/09 17:41:45 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.28 2005/03/13 13:35:30 xmerlin Exp $
+
+ 13 Mar 2005; Christian Zoffoli <xmerlin@gentoo.org> files/drbd-0.7-init:
+ fixed device check/creation closed bug #84871, thanks to joram agten
+ <joramagten@hotmail.com>
09 Mar 2005; Christian Zoffoli <xmerlin@gentoo.org> drbd-0.7.10.ebuild:
removed inherit check-kernel
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
}