36 lines
966 B
Bash
Executable File
36 lines
966 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci set luci.main.lang=auto
|
|
uci commit luci
|
|
|
|
uci set fstab.@global[0].anon_mount=1
|
|
uci commit fstab
|
|
|
|
rm -f /usr/lib/lua/luci/view/admin_status/index/mwan.htm
|
|
rm -f /usr/lib/lua/luci/view/admin_status/index/upnp.htm
|
|
rm -f /usr/lib/lua/luci/view/admin_status/index/ddns.htm
|
|
rm -f /usr/lib/lua/luci/view/admin_status/index/minidlna.htm
|
|
|
|
ln -sf /sbin/ip /usr/bin/ip
|
|
|
|
sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
|
|
|
[ -f '/bin/bash' ] && sed -i 's|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd
|
|
|
|
sed -i '/option disabled/d' /etc/config/wireless
|
|
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
|
|
|
sed -i '/log-facility/d' /etc/dnsmasq.conf
|
|
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
|
|
|
|
sed -i 's/cbi.submit\"] = true/cbi.submit\"] = \"1\"/g' /usr/lib/lua/luci/dispatcher.lua
|
|
|
|
echo 'hsts=0' > /root/.wgetrc
|
|
|
|
rm -rf /tmp/luci-modulecache/
|
|
rm -f /tmp/luci-indexcache
|
|
|
|
mv /etc/openwrt_banner /etc/banner
|
|
|
|
exit 0
|