mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
fix mtkwifi iface down after restart br-lan as workaround
This commit is contained in:
parent
e3fdf4d8f6
commit
ab08f8306e
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=default-settings
|
||||
PKG_VERSION:=2
|
||||
PKG_RELEASE:=21
|
||||
PKG_RELEASE:=22
|
||||
PKG_LICENSE:=GPLv3
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
|
@ -28,6 +28,13 @@ sed -i 's/\"services\"/\"nas\"/g' /usr/lib/lua/luci/controller/usb_printer.lua
|
||||
sed -i 's/\"services\"/\"nas\"/g' /usr/lib/lua/luci/controller/xunlei.lua
|
||||
sed -i 's/services/nas/g' /usr/lib/lua/luci/view/minidlna_status.htm
|
||||
|
||||
if [ -x "$(command -v mtkwifi)" ]; then
|
||||
sed -i "/luci.model.network/a local wifi_infs = \"ra0 rai0\"" /usr/lib/lua/luci/view/cbi/network_ifacelist.htm
|
||||
sed -i '/"id".*"_custom")/a ifattr(self.network == "lan", "checked", "checked") ..' /usr/lib/lua/luci/view/cbi/network_ifacelist.htm
|
||||
sed -i 's#attr("value", " ")#ifattr(self.network == "lan", "value", wifi_infs)#' /usr/lib/lua/luci/view/cbi/network_ifacelist.htm
|
||||
sed -i "s/_custom').checked=true\"/_custom').checked=true\" <%=ifattr(self.network == \"lan\", \"value\", wifi_infs)%>/" /usr/lib/lua/luci/view/cbi/network_ifacelist.htm
|
||||
fi
|
||||
|
||||
ln -sf /sbin/ip /usr/bin/ip
|
||||
|
||||
sed -i 's#downloads.openwrt.org#mirrors.cloud.tencent.com/lede#g' /etc/opkg/distfeeds.conf
|
||||
|
Loading…
Reference in New Issue
Block a user