From d2fdbd6f5102f647144c42fdc904aa8ce72b1dbd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 29 Jun 2009 20:07:22 -0400 Subject: [PATCH] Unbreak --- etc/rc.initial.firmware_update | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index e09993cda1..57556331dc 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));