mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Alert when we detect a nanobsd image.
This commit is contained in:
parent
1d3bc939e3
commit
285b3e3f31
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user