mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-08 07:37:13 +08:00
update
This commit is contained in:
22
.github/diy/zzz-default-settings
vendored
22
.github/diy/zzz-default-settings
vendored
@@ -17,19 +17,25 @@ uci commit fstab
|
|||||||
ln -sf /sbin/ip /usr/bin/ip
|
ln -sf /sbin/ip /usr/bin/ip
|
||||||
|
|
||||||
sed -i '/lienol/d' /etc/opkg/distfeeds.conf
|
sed -i '/lienol/d' /etc/opkg/distfeeds.conf
|
||||||
|
sed -i '/other/d' /etc/opkg/distfeeds.conf
|
||||||
#sed -i 's/downloads.openwrt.org/openwrt.proxy.ustclug.org/g' /etc/opkg/distfeeds.conf
|
#sed -i 's/downloads.openwrt.org/openwrt.proxy.ustclug.org/g' /etc/opkg/distfeeds.conf
|
||||||
#sed -i 's/http/https/g' /etc/opkg/distfeeds.conf
|
#sed -i 's/http/https/g' /etc/opkg/distfeeds.conf
|
||||||
sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
||||||
|
|
||||||
#sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
|
#sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
|
||||||
|
|
||||||
#uci set dhcp.lan.ra='server'
|
uci set dhcp.lan.ra='server'
|
||||||
#uci set dhcp.lan.dhcpv6='server'
|
uci set dhcp.lan.dhcpv6='server'
|
||||||
#uci set dhcp.lan.ra_management='1'
|
uci set dhcp.lan.ra_management='1'
|
||||||
#uci set dhcp.lan.ra_default='1'
|
uci set dhcp.lan.ra_default='1'
|
||||||
#uci set dhcp.@dnsmasq[0].localservice=0
|
#uci set dhcp.@dnsmasq[0].localservice=0
|
||||||
#uci set dhcp.@dnsmasq[0].nonwildcard=0
|
#uci set dhcp.@dnsmasq[0].nonwildcard=0
|
||||||
#uci commit dhcp
|
uci commit dhcp
|
||||||
|
|
||||||
|
#uci set network.lan.ipaddr='192.168.119.254'
|
||||||
|
#uci set network.lan.netmask='255.255.255.0'
|
||||||
|
uci set network.lan.ip6assign='64'
|
||||||
|
uci commit network
|
||||||
|
|
||||||
#DNS重定向
|
#DNS重定向
|
||||||
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
||||||
@@ -58,15 +64,21 @@ echo "luciversion ='$(date +'%m.%d')'" >> /usr/lib/lua/luci/version.lua
|
|||||||
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
||||||
#mv -f /usr/lib/lua/luci/view/admin_status/index /usr/lib/lua/luci/view/admin_status/index_backup 2>/dev/null
|
#mv -f /usr/lib/lua/luci/view/admin_status/index /usr/lib/lua/luci/view/admin_status/index_backup 2>/dev/null
|
||||||
|
|
||||||
|
sed -i 's#openwrt/luci#kenzo/openwrt-luci#g' /usr/lib/lua/luci/view/themes/*/footer.htm
|
||||||
|
|
||||||
#禁用某些可能会自启动且用不上的依赖包服务
|
#禁用某些可能会自启动且用不上的依赖包服务
|
||||||
/etc/init.d/php7-fastcgi disable 2>/dev/null
|
/etc/init.d/php7-fastcgi disable 2>/dev/null
|
||||||
/etc/init.d/php7-fpm disable 2>/dev/null
|
/etc/init.d/php7-fpm disable 2>/dev/null
|
||||||
|
/etc/init.d/php8-fastcgi disable 2>/dev/null
|
||||||
|
/etc/init.d/php8-fpm disable 2>/dev/null
|
||||||
/etc/init.d/softethervpnbridge disable 2>/dev/null
|
/etc/init.d/softethervpnbridge disable 2>/dev/null
|
||||||
/etc/init.d/softethervpnserver disable 2>/dev/null
|
/etc/init.d/softethervpnserver disable 2>/dev/null
|
||||||
/etc/init.d/softethervpnclient disable 2>/dev/null
|
/etc/init.d/softethervpnclient disable 2>/dev/null
|
||||||
/etc/init.d/haproxy disable 2>/dev/null
|
/etc/init.d/haproxy disable 2>/dev/null
|
||||||
/etc/init.d/kcptun disable 2>/dev/null
|
/etc/init.d/kcptun disable 2>/dev/null
|
||||||
|
|
||||||
|
chmod 0755 /etc/init.d/*
|
||||||
|
|
||||||
rm -rf /tmp/luci-*cache
|
rm -rf /tmp/luci-*cache
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user