diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index d05d03b8..56608d69 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -239,6 +239,7 @@ if($fw_install and -f "$tmpdir/firmware") } close $SYSUPGRADECONF; close $TMPSYSUPGRADECONF; + nvram_set("nodeupgraded","1"); system("tar -czf /tmp/arednsysupgradebackup.tgz -T /tmp/sysupgradefilelist"); if ($? == 1) { @@ -249,13 +250,12 @@ if($fw_install and -f "$tmpdir/firmware") "; page_footer(); print ""; + nvram_set("nodeupgraded","0"); exit 1; } system("rm -f /tmp/sysupgradefilelist"); - - nvram_set("nodeupgraded","1"); print "

Firmware will be written in the background.

If you are connected to the LAN of this node you may need to acquire a new