Date: Mon, 22 Mar 1999 22:57:17 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: John Baldwin <jobaldwi@vt.edu> Cc: Richard Wackerbarth <rkw@dataplex.net>, "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, current@FreeBSD.ORG Subject: Re: /etc/rc.conf, take 46! Message-ID: <36F64C3D.9369B963@newsguy.com> References: <XFMail.990322082829.jobaldwi@vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
>
> However, the original definition has already been used once the /etc/rc.conf
> has been read. Unless you are going to call the for loop twice, once after
> /etc/defaults/rc.conf to include /etc/rc.conf and once after /etc/rc.conf to
> include the extra stuff you define, your changes to ${rc_conf_files} in
> /etc/rc.conf will never take effect.
Make a sucking function (or separate script), call it recursively
for each time rc_conf_files change.
#!/bin/sh
for file in $1
do
. $file
if [ "${rc_conf_files}X" != "$*X" ] then
. $0 "${rc_conf_files}"
fi
done
--
Daniel C. Sobral (8-DCS)
dcs@newsguy.com
dcs@freebsd.org
"What happened?"
"It moved, sir!"
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36F64C3D.9369B963>
