From ab49f7fcefb753c5edff5e360bee0a35de9c27d7 Mon Sep 17 00:00:00 2001 From: mtm Date: Sat, 7 Jun 2003 10:31:17 +0000 Subject: 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 --- etc/rc.d/dhclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/rc.d') 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 } -- cgit v1.1