summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.firmware_update
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-29 16:57:05 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-29 16:57:05 -0400
commit285b3e3f31527eeaeff6bacedced4b29805212ff (patch)
tree49e67cd5458fe8e7741552af3e808dfff7a43b45 /etc/rc.initial.firmware_update
parent1d3bc939e3d8b01b77b011eaf510e58c90e195eb (diff)
downloadpfsense-285b3e3f31527eeaeff6bacedced4b29805212ff.zip
pfsense-285b3e3f31527eeaeff6bacedced4b29805212ff.tar.gz
Alert when we detect a nanobsd image.
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-xetc/rc.initial.firmware_update10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update
index f9356b6..e09993c 100755
--- a/etc/rc.initial.firmware_update
+++ b/etc/rc.initial.firmware_update
@@ -88,10 +88,14 @@ switch ($command) {
echo "\nMD5 checksum matches.\n";
exec("rm -f /root/*.md5");
}
- if(stristr($url,"bdiff"))
+ if(strstr($url,"bdiff")) {
+ echo "Binary DIFF upgrade file detected...\n";
$type = "bdiff";
- if(stristr($url,"bdiff"))
- $type = "nanobsd";
+ }
+ if(strstr($url,"bdiff")) {}
+ echo "NanoBSD upgrade file detected...\n";
+ $type = "nanobsd";
+ }
if(file_exists("/root/firmware.tgz")) {
do_upgrade("/root/firmware.tgz", $type);
exit;
OpenPOWER on IntegriCloud