From 8ddf49ba32d9f43cf4f5e8801803b1309c7601eb Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Thu, 12 Jan 2017 20:32:47 -0800 Subject: [PATCH] bugfix: OTA Upgrade may mask backup errors. During creation of the backup file some errors may be masked. While this isn't confirmed to be the cause of any known report it is possible users have in the past experienced this and we just couldn't see it. Change-Id: I12136b7c53aabfb243445170b91c69928206bb1b --- files/www/cgi-bin/admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 661521fb..c68d8f85 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -249,7 +249,7 @@ if($fw_install and -f "$tmpdir/firmware") nvram_set("nodeupgraded","1"); system("tar -czf /tmp/arednsysupgradebackup.tgz -T /tmp/sysupgradefilelist"); - if ($? == 1) { + if ($? != 0) { print "

ERROR: Could not backup filesystem.

An error occured trying to backup the file system. Node will now reboot.