feature: add target type info (ar71xx/ath79) to admin page (#500)

* feature: add target type info (ar71xx/ath79) to admin page

* changed order of info
This commit is contained in:
dman776 2020-04-03 17:50:55 -05:00 committed by GitHub
parent 83675fbd9d
commit cdd1f8e96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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 "<tr><td align=center colspan=3>current version: $fw_version</td></tr>\n";
print "<tr><td align=center colspan=3>hardware type: $mfgprefix (${hardwaretype})</td></tr>\n";
print "<tr><td align=center colspan=3>hardware type: (${targettype}) $mfgprefix (${hardwaretype})</td></tr>\n";
print "<tr>\n";
print "<td>Upload Firmware</td>\n";
print "<td><input type=file name=firmfile title='choose the firmware file to install from your hard drive' accept='.bin' onchange='validateFirmwareFilename(this)'></td>\n";