diff options
author | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-10 19:13:48 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-10 19:15:28 -0400 |
commit | 11da95a60ff9f0de83030fb352a0396dea737035 (patch) | |
tree | de93affbb2cd027da76e6c08f8fddfc286d1b263 /etc/rc.initial.firmware_update | |
parent | e42634a622aad4e98898eded1fc18cb00827446b (diff) | |
download | pfsense-11da95a60ff9f0de83030fb352a0396dea737035.zip pfsense-11da95a60ff9f0de83030fb352a0396dea737035.tar.gz |
Correct out of place {
Diffstat (limited to 'etc/rc.initial.firmware_update')
-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)); |