diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 18:41:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 18:41:16 +0000 |
commit | a990d2dcda9068327035deb34cf829222f7fb891 (patch) | |
tree | 79409adc51172d0ac03951b4b3d27d7b13ee86b3 /etc | |
parent | 27b62c6e7a024df8ee1e3d3a141b3efb0400a431 (diff) | |
download | pfsense-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.inc | 2 |
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) |