This commit is contained in:
kenzok8 2023-02-04 12:32:33 +00:00
parent 61ef31107c
commit d64b814deb
2 changed files with 6 additions and 6 deletions

View File

@ -46,9 +46,9 @@ sed -i '/option disabled/d' /etc/config/wireless
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
echo "DISTRIB_REVISION='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
echo "DISTRIB_REVISION='v$(date +%d.%m.%Y)'" >> /etc/openwrt_release
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
echo "DISTRIB_RELEASE='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
echo "DISTRIB_RELEASE='v$(date +%d.%m.%Y)'" >> /etc/openwrt_release
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
@ -58,7 +58,7 @@ sed -i 's/LuCI openwrt-18.06-k5.4 branch/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
echo 'luciversion = "$(date +%b)"' >> /usr/lib/lua/luci/version.lua
echo 'luciversion = "$(date +%b.%d)"' >> /usr/lib/lua/luci/version.lua
sed -i '/log-facility/d' /etc/dnsmasq.conf
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf

View File

@ -40,9 +40,9 @@ sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
wifi up
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
echo "DISTRIB_REVISION='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
echo "DISTRIB_REVISION='v$(date +%d.%m.%Y)'" >> /etc/openwrt_release
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
echo "DISTRIB_RELEASE='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
echo "DISTRIB_RELEASE='v$(ddate +%d.%m.%Y)'" >> /etc/openwrt_release
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
@ -52,7 +52,7 @@ sed -i 's/LuCI openwrt-18.06-k5.4 branch/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
echo 'luciversion = "$(date +%b)"' >> /usr/lib/lua/luci/version.lua
echo 'luciversion = "$(date +%b.%d)"' >> /usr/lib/lua/luci/version.lua
# 删除状态页不需显示的
rm -rf /usr/lib/lua/luci/view/admin_status/index