summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-06-07 10:31:17 +0000
committermtm <mtm@FreeBSD.org>2003-06-07 10:31:17 +0000
commitab49f7fcefb753c5edff5e360bee0a35de9c27d7 (patch)
tree7bd5ed6870f71b92de718ce09521ac764ea99263 /etc/rc.d
parent69b4e9ce0114dea78c811d6c01cd8ebd9b810fc5 (diff)
downloadFreeBSD-src-ab49f7fcefb753c5edff5e360bee0a35de9c27d7.zip
FreeBSD-src-ab49f7fcefb753c5edff5e360bee0a35de9c27d7.tar.gz
The dhcp_program and dhcp_flags variables have to be renamed to
take advantage of the rc.subr(8) glue. They are renamed dhclient_program and dhclient_flags. o Rename them in rc.conf(5) o Rename them in /etc/defaults/rc.conf o Add the deprecated variables to /etc/rc.subr o Isolate the use of the 'command' variable to the NetBSD specific parts in /etc/rc.d/dhclient. o Now that dhcp_flags has also been renamed it will be applied properly by rc.subr(8) glue code. Reported by: John Nielsen <john@jnielsen.net>
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/dhclient4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient
index d296825..160b9b2 100755
--- a/etc/rc.d/dhclient
+++ b/etc/rc.d/dhclient
@@ -17,7 +17,6 @@
. /etc/network.subr
name="dhclient"
-command="/sbin/${name}"
pidfile="/var/run/${name}.pid"
case "${OSTYPE}" in
FreeBSD)
@@ -27,6 +26,7 @@ FreeBSD)
;;
NetBSD)
rcvar=$name
+ command="/sbin/${name}"
;;
esac
@@ -41,7 +41,7 @@ dhclient_prestart()
ifscript_up ${ifn}
done
- rc_flags="${rc_flags} ${dhcp_flags} ${dhcp_list}"
+ rc_flags="${rc_flags} ${dhcp_list}"
return 0
}
OpenPOWER on IntegriCloud