diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index e12da193..73c77493 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -106,6 +106,9 @@ push @serverpaths, $uciserverpath; ${hardwaretype} = `/usr/local/bin/get_hardwaretype`; chomp(${hardwaretype}); +${targettype} = `ubus call system board | jsonfilter -e '@["release"].target'`; +chomp(${targettype}); + # handle TPLink and Mikrotik exception conditions $mfg=`/usr/local/bin/get_hardware_mfg`; chomp($mfg); @@ -680,9 +683,7 @@ if(@fw_output) } print "