Date: Wed, 6 Dec 2000 08:10:20 -0500 (EST) From: Steve Tremblett <sjt@cisco.com> To: freebsd-questions@freebsd.org Subject: switching boot configs on the fly? Message-ID: <200012061310.IAA27171@sjt-u10.cisco.com>
next in thread | raw e-mail | index | archive | help
I am running FreeBSD on a laptop, which leads to 2 separate network configs (work = DHCP, home = 10.0.0.1 & PPPoE). I was thinking about dropping an interactive (ie. prints a question and receives a keyboard response) script into the boot process to switch my rc.conf files before they are parsed. Writing the script isn't the issue, but where exactly would one plug such a script in, and would an interactive script work at that point of the boot process? If such a scenario wouldn't work, how would you suggest one goes about this? I could write a script to do the ifconfigs and make the choice as a user after boot, but either scenario above (DHCP or PPPoE) has to time out and fail when they are not on the proper network. I guess I could write a script to do the ifconfigs to setup after booting AND one to switch the rc.conf before booting it on a different network. Thanks to any and all suggestions -- Steve Tremblett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012061310.IAA27171>