summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.bootup
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-08 14:11:28 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-08 14:11:28 +0545
commitb49e6c0113f107f5a9ff61fe8e8798de8cca0953 (patch)
treef664e75cb536d870ab3f141a0927e1712719d420 /src/etc/rc.bootup
parent7a2cec8fdd6c06fb37da499baa2fc670e5cba1e5 (diff)
downloadpfsense-b49e6c0113f107f5a9ff61fe8e8798de8cca0953.zip
pfsense-b49e6c0113f107f5a9ff61fe8e8798de8cca0953.tar.gz
Automatically choose some interface combinations
on factory default boot. This allows the system to switch interfaces from the newer ones in the default config (e.g. em0 em1) back to the interfaces used by: Alix - vr1 vr0 APU - re1 re2 that match the WAN and LAN labels printed on many existing devices. It means these devices can boot the default config and this will automatically detect that there is no em0/em1 and will instead select whatever exists out of vr1/vr0 or re1/re2. This avoids the user having to use the serial cable to do interface assignment when starting a brand new image, or when resetting to factory defaults. It could easily be extended to other common interface combinations. For me, this (or similar) would be very beneficial. At remote sites it is really good if it is possible to do reset to factory defaults, or put a fresh CF/SD card in, and the system boots without needing to connect a serial cable and do interface assignment.
Diffstat (limited to 'src/etc/rc.bootup')
-rwxr-xr-xsrc/etc/rc.bootup4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup
index 78f9a39..df434f2 100755
--- a/src/etc/rc.bootup
+++ b/src/etc/rc.bootup
@@ -158,6 +158,10 @@ echo "done.\n";
/* run any early shell commands specified in config.xml */
system_do_shell_commands(1);
+if (file_exists("/conf/trigger_initial_wizard")) {
+ check_for_alternate_interfaces();
+}
+
/*
* Determine if we need to throw a interface exception
* and ask the user to reassign interfaces. This will
OpenPOWER on IntegriCloud