summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.firmware_update
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-10 19:13:48 -0400
committerScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-10 19:15:28 -0400
commit11da95a60ff9f0de83030fb352a0396dea737035 (patch)
treede93affbb2cd027da76e6c08f8fddfc286d1b263 /etc/rc.initial.firmware_update
parente42634a622aad4e98898eded1fc18cb00827446b (diff)
downloadpfsense-11da95a60ff9f0de83030fb352a0396dea737035.zip
pfsense-11da95a60ff9f0de83030fb352a0396dea737035.tar.gz
Correct out of place {
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-xetc/rc.initial.firmware_update4
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));
OpenPOWER on IntegriCloud