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 "current version: $fw_version\n"; - -print "hardware type: $mfgprefix (${hardwaretype})\n"; - +print "hardware type: (${targettype}) $mfgprefix (${hardwaretype})\n"; print "\n"; print "Upload Firmware\n"; print "\n";