===================================================================
Do not kill dhclient twice. If we execute dhclient -r,
dhclient gets already killed, so there is no need to
do it twice. But only do it, if we release some leases.
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/dhclient,v
retrieving revision 1.9
diff -u -r1.9 dhclient
--- dhclient 28 Jul 2003 08:15:52 -0000 1.9
+++ dhclient 15 Sep 2003 16:36:13 -0000
@@ -53,8 +53,6 @@
dhclient_prestart()
{
- dhclient_common || return 1
-
for ifn in ${_cooked_list}; do
ifscript_up ${ifn}
done
@@ -78,8 +76,6 @@
dhclient_prestop()
{
- dhclient_common || return 1
-
for ifn in ${_cooked_list}; do
ipx_down ${ifn}
ifalias_down ${ifn}
@@ -110,4 +106,10 @@
fi
load_rc_config $name
+dhclient_common
+if [ -n "$_cooked_list" ]; then
+ if [ -s $pidfile ]; then
+ stop_cmd=":"
+ fi
+fi
run_rc_command "$1"
Martin Blapp, <
mb@...> <
mbr@...>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l
mbr@...>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------