diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-29 16:57:05 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-29 16:57:05 -0400 |
commit | 285b3e3f31527eeaeff6bacedced4b29805212ff (patch) | |
tree | 49e67cd5458fe8e7741552af3e808dfff7a43b45 /etc/rc.initial.firmware_update | |
parent | 1d3bc939e3d8b01b77b011eaf510e58c90e195eb (diff) | |
download | pfsense-285b3e3f31527eeaeff6bacedced4b29805212ff.zip pfsense-285b3e3f31527eeaeff6bacedced4b29805212ff.tar.gz |
Alert when we detect a nanobsd image.
Diffstat (limited to 'etc/rc.initial.firmware_update')
-rwxr-xr-x | etc/rc.initial.firmware_update | 10 |
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; |