mirror of https://github.com/aredn/aredn.git
aredn: Fix validateFirmwareFilename() on admin page (#150)
Co-authored-by: Phil Crump <phil.crump@goonhilly.org>
This commit is contained in:
parent
304540d0e1
commit
a6669cc53e
|
@ -630,12 +630,13 @@ print <<EOF;
|
|||
var searchstring = "";
|
||||
var efn = "";
|
||||
if(hwmfg != "cpe"){
|
||||
if ($mfgprefix == "wbs") {
|
||||
if (hwmfg == "wbs") {
|
||||
searchstring= ".*wbs" + hwtype + "-sysupgrade.bin$\";
|
||||
efn = "aredn-$fw_version-$mfgprefix${hardwaretypev}-sysupgrade.$
|
||||
efn = "aredn-$fw_version-$mfgprefix${hardwaretypev}-sysupgrade.bin";
|
||||
} else {
|
||||
searchstring= ".*-" + hwtype + "-sysupgrade.bin$\";
|
||||
efn = "aredn-$fw_version-$mfgprefix-${hardwaretypev}-sysupgrade.bin";
|
||||
}
|
||||
} else {
|
||||
searchstring= ".*cpe" + hwtype + "-sysupgrade.bin$\";
|
||||
efn = "aredn-$fw_version-$mfgprefix${hardwaretypev}-sysupgrade.bin";
|
||||
|
|
Loading…
Reference in New Issue