mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If ECL picks up a config on the first boot post-install, trigger a package sync and don't run the wizard.
(cherry picked from commit695f7d5c05) (cherry picked from commit661c5b7f6a) (cherry picked from commit7d9248c159)
This commit is contained in:
parent
c604b5713f
commit
05c4198655
@ -184,6 +184,11 @@ function find_config_xml() {
|
||||
backup_config();
|
||||
echo "Restoring [{$slice}] {$config_location}...\n";
|
||||
restore_backup($config_location);
|
||||
if (file_exists('/cf/conf/trigger_initial_wizard')) {
|
||||
echo "First boot after install, setting flag for package sync and disabling wizard...\n";
|
||||
touch('/cf/conf/needs_package_sync');
|
||||
@unlink('/cf/conf/trigger_initial_wizard');
|
||||
}
|
||||
echo "Cleaning up...\n";
|
||||
exec("/sbin/umount /tmp/mnt/cf");
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user