diff options
author | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:12:27 +1200 |
---|---|---|
committer | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:12:27 +1200 |
commit | 3c6d704a4319878e0883a6177eda62a73a6f7871 (patch) | |
tree | 10e2851c1a33c67620c296211366aa25177d6ca8 /etc/rc.bootup | |
parent | a26d95383a6146734f67c9db21cd83534052843a (diff) | |
download | pfsense-3c6d704a4319878e0883a6177eda62a73a6f7871.zip pfsense-3c6d704a4319878e0883a6177eda62a73a6f7871.tar.gz |
Revert "Make initial changes to allow pfSense to work in a jail."
This reverts commit a26d95383a6146734f67c9db21cd83534052843a.
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-x | etc/rc.bootup | 55 |
1 files changed, 14 insertions, 41 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index e224519..c1749cf 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -157,48 +157,21 @@ echo "Loading configuration..."; parse_config_bootup(); echo "done.\n"; -if($g['platform'] == "jail") { - /* We must determine what network settings have been configured for us */ - $wanif = "lo0"; /* defaults, if the jail admin hasn't set us up */ - $ipaddr = "127.0.0.1"; - $iflist = get_interface_list(); - foreach ($iflist as $iface => $ifa) { - if (isset($ifa['ipaddr'])) { - $wanif = $iface; - $ipaddr = $ifa['ipaddr']; - break; - } - } - $config['interfaces'] = array(); - $config['interfaces']['lan'] = array(); - $config['interfaces']['lan']['enable'] = false; - $config['interfaces']['wan'] = array(); - /* XXX, todo */ - $config['interfaces']['wan']['if'] = $wanif; - $config['interfaces']['wan']['ipaddr'] = $ipaddr; - $config['interfaces']['wan']['subnet'] = "32"; /* XXX right? */ - $config['interfaces']['wan']['enable'] = true; - if($config['dhcpd']['lan']) - unset($config['dhcpd']['lan']['enable']); - unlink_if_exists('/conf/trigger_initial_wizard'); - write_config(); -} else { - /* - * Determine if we need to throw a interface exception - * and ask the user to reassign interfaces. This will - * avoid a reboot and thats a good thing. - */ - while(is_interface_mismatch() == true) { - led_assigninterfaces(); - echo "\nNetwork interface mismatch -- Running interface assignment option.\n"; - $ifaces = get_interface_list(); - if (is_array($ifaces)) { - foreach($ifaces as $iface => $ifdata) - interfaces_bring_up($iface); - } - set_networking_interfaces_ports(); - led_kitt(); +/* + * Determine if we need to throw a interface exception + * and ask the user to reassign interfaces. This will + * avoid a reboot and thats a good thing. + */ +while(is_interface_mismatch() == true) { + led_assigninterfaces(); + echo "\nNetwork interface mismatch -- Running interface assignment option.\n"; + $ifaces = get_interface_list(); + if (is_array($ifaces)) { + foreach($ifaces as $iface => $ifdata) + interfaces_bring_up($iface); } + set_networking_interfaces_ports(); + led_kitt(); } /* convert config and clean backups */ |