diff options
-rwxr-xr-x | etc/rc.initial.firmware_update | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index 9a75c1b..9d6f6c2 100755 --- a/etc/rc.initial.firmware_update +++ b/etc/rc.initial.firmware_update @@ -90,11 +90,12 @@ switch ($command) { echo "Binary DIFF upgrade file detected...\n"; $type = "bdiff"; } - if(strstr($url,"nanobsd")) {} + if(strstr($url,"nanobsd")) { echo "NanoBSD upgrade file detected...\n"; $type = "nanobsd"; } if(file_exists("/root/firmware.tgz")) { + $type = "normal"; do_upgrade("/root/firmware.tgz", $type); exit; } else { @@ -102,6 +103,7 @@ switch ($command) { fclose($fp); die -1; } + } case "2": echo "\nEnter the complete path to the .tgz update file: "; $path = chop(fgets($fp)); |