summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-14 18:41:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-14 18:41:16 +0000
commita990d2dcda9068327035deb34cf829222f7fb891 (patch)
tree79409adc51172d0ac03951b4b3d27d7b13ee86b3 /etc
parent27b62c6e7a024df8ee1e3d3a141b3efb0400a431 (diff)
downloadpfsense-a990d2dcda9068327035deb34cf829222f7fb891.zip
pfsense-a990d2dcda9068327035deb34cf829222f7fb891.tar.gz
When restoring the last known good configuration, really restore the last known good, not the *OLDEST*!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index ebf5d3b..d664192 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -268,7 +268,7 @@ function generate_config_cache($config) {
}
function discover_last_backup() {
- $backups = split("\n", `cd /cf/conf/backup && ls -lat *.xml | awk '{print \$9}' | grep -v "\\.\\."`);
+ $backups = split("\n", `cd /cf/conf/backup && ls -ltr *.xml | awk '{print \$9}' | grep -v "\\.\\."`);
$last_backup = "";
foreach($backups as $backup)
if($backup)
OpenPOWER on IntegriCloud