diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-21 12:23:19 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-21 12:23:19 +0545 |
commit | 7d7da5e5c7aedb11060f0f0906ed0fa8c9a890f8 (patch) | |
tree | 86356b19301a5d684cc71434c51012e2fac82710 /src/etc/rc.bootup | |
parent | 240d4f10ac42864181e5260865f620b2cd089639 (diff) | |
download | pfsense-7d7da5e5c7aedb11060f0f0906ed0fa8c9a890f8.zip pfsense-7d7da5e5c7aedb11060f0f0906ed0fa8c9a890f8.tar.gz |
Avoid triggering initial wizard before reboot
If you use the the webGUI to reset to factory defaults, then while the
existing system is shutting down you navigate off to the dashboard, the
initial setup wizard will start. The trigger_initial_wizard flag file is
deleted, and so after the reboot the initial setup wizard will not be
triggered.
This change fixes that sequence of events by using a different flag file
across the reboot, and switching it back to the usual flag file name
during the subsequent boot up.
Diffstat (limited to 'src/etc/rc.bootup')
-rwxr-xr-x | src/etc/rc.bootup | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup index df434f2..b7c3afb 100755 --- a/src/etc/rc.bootup +++ b/src/etc/rc.bootup @@ -138,6 +138,12 @@ if (file_exists('/conf/needs_package_sync_after_reboot')) { @unlink('/conf/needs_package_sync_after_reboot'); } +/* Triggering of the initial setup wizard after reboot has been requested */ +if (file_exists('/conf/trigger_initial_wizard_after_reboot')) { + touch('/conf/trigger_initial_wizard'); + @unlink('/conf/trigger_initial_wizard_after_reboot'); +} + /* start devd (dhclient now uses it) */ echo "Starting device manager (devd)..."; mute_kernel_msgs(); |