diff options
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-x | etc/rc.initial.firmware_update | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index e09993c..5755633 100755 --- a/etc/rc.initial.firmware_update +++ b/etc/rc.initial.firmware_update @@ -99,12 +99,11 @@ switch ($command) { if(file_exists("/root/firmware.tgz")) { do_upgrade("/root/firmware.tgz", $type); exit; + } else { + echo "\nCould not download update.\n\n"; + fclose($fp); + die -1; } - } else { - echo "\nCould not download update.\n\n"; - fclose($fp); - die -1; - } case "2": echo "\nEnter the complete path to the .tgz update file: "; $path = chop(fgets($fp)); |