diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-23 22:53:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-23 22:53:32 +0000 |
commit | 4973d9414a07d715af8321f9b0b22e144ddbbdd7 (patch) | |
tree | 67272047d6652dcdd4812870e8cd614325766194 /etc/inc/config.inc | |
parent | 3c9daf997ad179f459be180daf621f0626bc35f1 (diff) | |
download | pfsense-4973d9414a07d715af8321f9b0b22e144ddbbdd7.zip pfsense-4973d9414a07d715af8321f9b0b22e144ddbbdd7.tar.gz |
Toggle the wizard if the interfaces get out of sync or if the user resets to factory defaults
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 06dd314..83ccecd 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -735,7 +735,10 @@ function reset_factory_defaults() { /* copy default configuration */ copy("{$g['conf_default_path']}/config.xml", "{$g['conf_path']}/config.xml"); - + + /* call the wizard */ + touch("/trigger_initial_wizard"); + conf_mount_ro(); config_unlock(); @@ -1017,6 +1020,11 @@ EOD; for (; isset($config['interfaces']['opt' . ($i+1)]); $i++) unset($config['interfaces']['opt' . ($i+1)]); + conf_mount_rw(); + + /* call the wizard */ + touch("/trigger_initial_wizard"); + write_config(); echo <<<EOD |