diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 15:49:43 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:23:14 -0300 |
commit | 1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd (patch) | |
tree | aba47ff46f335961f91cae4ba2e228e49209b310 /src/etc/rc.restore_config_backup | |
parent | eec44c64709c6e9dfc86f734476e547c3c2f67e8 (diff) | |
download | pfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.zip pfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.tar.gz |
Remove all calls to conf_mount_r* functions
Diffstat (limited to 'src/etc/rc.restore_config_backup')
-rwxr-xr-x | src/etc/rc.restore_config_backup | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/etc/rc.restore_config_backup b/src/etc/rc.restore_config_backup index 31dbfa3..f9237e6 100755 --- a/src/etc/rc.restore_config_backup +++ b/src/etc/rc.restore_config_backup @@ -91,7 +91,6 @@ function restore_history_backup($number) { echo gettext("Y/N?") . " : "; $confirm = strtoupper(chop(fgets($fp))); if ($confirm == gettext("Y")) { - conf_mount_rw(); if (config_restore($g['conf_path'] . '/backup/config-' . $thisbackup['time'] . '.xml') == 0) { echo "\n"; echo sprintf(gettext('Successfully reverted to timestamp %1$s with description "%2$s".'), date(gettext("n/j/y H:i:s"), $thisbackup['time']), $thisbackup['description']); @@ -99,7 +98,6 @@ function restore_history_backup($number) { } else { echo gettext("Unable to revert to the selected configuration.") . "\n"; } - conf_mount_ro(); } else { echo gettext("Restore cancelled.") . "\n"; } |