diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-04-27 23:08:22 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2023-04-27 23:10:17 +0000 |
commit | 134975793191673bbe6ea8cfb0392eadec96aa9e (patch) | |
tree | 81fb9a66df948b2115e819a70acbfd0e42ec1c05 /applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view | |
parent | 0944811fbcfa2471946c4fecdac277494000b1a4 (diff) |
luci-app-advanced-reboot: add support for Linksys and Xiaomi devices and misc fixes
Fixes:
* change maintainer's email address
* add rpcd reload to uci-defaults script
* add better messaging with link to README when device isn't detected as
dual-firmware
Add support for:
* linksys-ea8100v2
* linksys-whw01v1
* xiaomi-ax3600
* xiaomi-ax9000
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js index 482b8e2e91..3fdf6c18ec 100644 --- a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js +++ b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js @@ -5,6 +5,11 @@ 'require uci'; 'require fs'; +var pkg = { + get Name() { return 'luci-app-advanced-reboot'; }, + get URL() { return 'https://docs.openwrt.melmac.net/' + pkg.Name + '/'; } +}; + return view.extend({ translateTable: { NO_BOARD_NAME : function(args) { return _('Unable to find Device Board Name.')}, @@ -213,9 +218,13 @@ return view.extend({ body.appendChild(partitions_table); } else { body.appendChild(E('p', { 'class' : 'alert-message warning'}, - device_info.rom_board_name ? _("Warning: Device (%s) is unknown or isn't a dual-partition device!").format(device_info.rom_board_name) + device_info.rom_board_name ? _("Warning: Device (%s) is unknown or isn't a dual-firmware device!" + "%s" + + "If you are seeing this on an OpenWrt dual-firmware supported device," + "%s" + "please refer to " + + "%sHow to add a new device section of the README%s.").format(device_info.rom_board_name, "<br /><br />", "<br />", + "<a href=\"" + pkg.URL + "#how-to-add-a-new-device\" target=\"_blank\">", "</a>" ) : _('Warning: Unable to obtain device information!') )); + } body.appendChild(E('hr')); |