reload rc.conf during boot process
From: Markie (mark.cullen_at_dsl.pipex.com)
Date: 09/21/04
- Previous message: Christian Hiris: "Re: XF86(mis)Config Keyboard"
- Next in thread: Giorgos Keramidas: "Re: reload rc.conf during boot process"
- Reply: Giorgos Keramidas: "Re: reload rc.conf during boot process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <freebsd-questions@freebsd.org> Date: Tue, 21 Sep 2004 00:26:38 +0100
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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Christian Hiris: "Re: XF86(mis)Config Keyboard"
- Next in thread: Giorgos Keramidas: "Re: reload rc.conf during boot process"
- Reply: Giorgos Keramidas: "Re: reload rc.conf during boot process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|