Mailing List Archive

patch for 'drbd_common'
hiho,

here's a small patch for 'drbd_common'.

the script didn't found 'drbdsetup', although it exists in the path.

ciao -ap


Index: drbd/scripts/drbd_common
===================================================================
RCS file: /cvshome/drbd/drbd/scripts/drbd_common,v
retrieving revision 1.7
diff -u -r1.7 drbd_common
--- drbd/scripts/drbd_common 2000/12/19 09:47:01 1.7
+++ drbd/scripts/drbd_common 2001/01/24 15:09:55
@@ -288,7 +288,7 @@
{
for NAME in $*
do
- if ! `which $NAME 2>/dev/null` ; then
+ if [ ! `which $NAME 2>/dev/null` ]; then
failed "$0 needs the command '$NAME'"
exit 1
fi

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Andreas Piesk fon: +49-341-979 7424
Virbus AG fax: +49-341-979 7409
Löhrstr. 16 mail: apiesk@example.com
04105 Leipzig http: www.virbus.de
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: patch for 'drbd_common' [ In reply to ]
I must remove this test and hardcode the path of every function.
But I have ABSOLUTLY no time !!

I will try next week
Thank you for your patch.

Thomas
--
Thomas Mangin (mailto:thomas.mangin@example.com)
Systems Manager (mailto:systems-thomas@example.com)
Legend Internet Ltd. (http://www.legend.co.uk:/)

----- Original Message -----
From: Andreas Piesk <apiesk@example.com>
To: 'Drbd-Devel (E-Mail) <drbd-devel@example.com>
Sent: Wednesday, January 24, 2001 3:10 PM
Subject: [DRBD-dev] patch for 'drbd_common'


hiho,

here's a small patch for 'drbd_common'.

the script didn't found 'drbdsetup', although it exists in the path.

ciao -ap


Index: drbd/scripts/drbd_common
===================================================================
RCS file: /cvshome/drbd/drbd/scripts/drbd_common,v
retrieving revision 1.7
diff -u -r1.7 drbd_common
--- drbd/scripts/drbd_common 2000/12/19 09:47:01 1.7
+++ drbd/scripts/drbd_common 2001/01/24 15:09:55
@@ -288,7 +288,7 @@
{
for NAME in $*
do
- if ! `which $NAME 2>/dev/null` ; then
+ if [ ! `which $NAME 2>/dev/null` ]; then
failed "$0 needs the command '$NAME'"
exit 1
fi

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Andreas Piesk fon: +49-341-979 7424
Virbus AG fax: +49-341-979 7409
Löhrstr. 16 mail: apiesk@example.com
04105 Leipzig http: www.virbus.de
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


_______________________________________________
DRBD-devel mailing list
DRBD-devel@example.com
http://lists.sourceforge.net/lists/listinfo/drbd-devel