update
This commit is contained in:
parent
5b2c47aee9
commit
8aa55dbcd3
|
@ -45,12 +45,10 @@ echo '[ -n "$(command -v ip6tables)" ] && ip6tables -t nat -A PREROUTING -p tcp
|
|||
sed -i '/option disabled/d' /etc/config/wireless
|
||||
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
||||
|
||||
date=`date +%m.%d.%Y`
|
||||
date1=`date +%h`
|
||||
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
||||
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
||||
echo "DISTRIB_REVISION='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
|
||||
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
|
||||
echo "DISTRIB_RELEASE='v$date1'" >> /etc/openwrt_release
|
||||
echo "DISTRIB_RELEASE='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
|
||||
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
||||
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
||||
|
||||
|
@ -60,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 = "v$date1"' >> /usr/lib/lua/luci/version.lua
|
||||
echo 'luciversion = "$(date +%b)"' >> /usr/lib/lua/luci/version.lua
|
||||
|
||||
sed -i '/log-facility/d' /etc/dnsmasq.conf
|
||||
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
|
||||
|
|
|
@ -39,12 +39,10 @@ sed -i '/option disabled/d' /etc/config/wireless
|
|||
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
||||
wifi up
|
||||
|
||||
date=`date +%m.%d.%Y`
|
||||
date1=`date +%h`
|
||||
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
||||
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
||||
echo "DISTRIB_REVISION='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
|
||||
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
|
||||
echo "DISTRIB_RELEASE='v$date1'" >> /etc/openwrt_release
|
||||
echo "DISTRIB_RELEASE='v$(date +%Y.%m.%d)'" >> /etc/openwrt_release
|
||||
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
||||
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
||||
|
||||
|
@ -54,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 = "v$date1"' >> /usr/lib/lua/luci/version.lua
|
||||
echo 'luciversion = "$(date +%b)"' >> /usr/lib/lua/luci/version.lua
|
||||
|
||||
# 删除状态页不需显示的
|
||||
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
||||
|
|
Loading…
Reference in New Issue