luci-app-mtwifi-cfg: add patch for network.js

This commit is contained in:
hanwckf 2023-12-07 19:04:57 +08:00
parent 30536c7e13
commit f7eaac3baf

View File

@ -7,3 +7,11 @@ fi
if [ -d /usr/share/luci/menu.d ]; then
mv -f /usr/share/luci-app-mtwifi-cfg/luci-mod-status.json /usr/share/luci/menu.d/luci-mod-status.json
fi
luci_network_js="/www/luci-static/resources/network.js"
if [ -f $luci_network_js ]; then
if ! grep -sq 'ra\[xiyez\]' $luci_network_js ; then
sed -i 's#/^wlan\\d+/,#/^wlan\\d+/,/^ra[xiyez]?\\d+/,/^apcli[xiyez]?\\d+/,#' $luci_network_js
fi
fi