Date: Tue, 21 Sep 2004 00:26:38 +0100 From: "Markie" <mark.cullen@dsl.pipex.com> To: <freebsd-questions@freebsd.org> Subject: reload rc.conf during boot process Message-ID: <01bb01c49f69$48c66300$f800000a@laptop>
next in thread | raw e-mail | index | archive | help
Is it possible to do this somehow? I was trying my hand out at C and made a cool little menu for myself. It looks for files in /etc/ which are named rc.conf.xxxxx and lists them in the menu. Then, when you select one on boot, it copies the selected configuration file to rc.conf. I put my program in... the rc.d mount script, so that the disk is mounted writeable at the time and my C program is able to issue cp (bad way I know) to replace rc.conf. After running my program in the rc.d mount script I then did a . /etc/rc.conf but rc.conf doesn't get reloaded. The file is being copied over, as when I reboot it starts using the copied over configuration. I am not sure if . /etc/rc.conf is supposed to load a file in? I just saw it in some other script and assumed that's what it was doing. Thanks in advance
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bb01c49f69$48c66300$f800000a>