mirror of https://github.com/aredn/aredn.git
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:
parent
83675fbd9d
commit
cdd1f8e96c
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue