Commit 6246ff1f authored by Leigh Stoller's avatar Leigh Stoller

Fix up the way interfaces are specified.

parent 19ec308e
......@@ -177,7 +177,9 @@ sub GetNewConfig()
print "* *\n";
print "* Frisbee Demonstration CD (version 0.1). *\n";
print "* *\n";
print "* THIS PROGRAM CAN WIPE YOUR YOUR HARD DISK! *\n";
print "* This CD will boot up the machine in a RAM/CD-based FreeBSD *\n";
print "* system that allows remote ssh access as root to save/restore *\n";
print "* the hard drive contents. *\n";
print "* *\n";
print "* If this is NOT what you intended, please type 'no' to the *\n";
print "* prompt below and the machine will reboot (don't forget to *\n";
......@@ -386,12 +388,14 @@ sub WriteRCFiles()
print CONFIG "# DO NOT EDIT! This file is autogenerated at reboot.\n";
print CONFIG "#\n";
print CONFIG "network_interfaces=\"".
"\$network_interfaces $config{'interface'}\"\n";
#
# Its very simple if using DHCP!
#
if ($dodhcp) {
print CONFIG
"dhcp_interfaces=\"\$dhcp_interfaces $config{'interface'}\"\n";
print CONFIG "ifconfig_$config{interface}=\"DHCP\"\n";
close(CONFIG);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment