mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-09-11 02:44:23 +08:00
update 2026-08-04 14:22:43
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci_app_control_timewol[-1]
|
||||
add ucitrack luci_app_control_timewol
|
||||
set ucitrack.@luci_app_control_timewol[-1].init=luci-app-control-timewol
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci_app_control_webrestriction[-1]
|
||||
add ucitrack luci_app_control_webrestriction
|
||||
set ucitrack.@luci_app_control_webrestriction[-1].init=luci-app-control-webrestriction
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci_app_control_weburl[-1]
|
||||
add ucitrack luci_app_control_weburl
|
||||
set ucitrack.@luci_app_control_weburl[-1].init=luci-app-control-weburl
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@filebrowser[-1]
|
||||
add ucitrack filebrowser
|
||||
set ucitrack.@filebrowser[-1].init=filebrowser
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@guest-wifi[-1]
|
||||
add ucitrack guest-wifi
|
||||
set ucitrack.@guest-wifi[-1].init=guest-wifi
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -8,13 +8,6 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_ipsec_server.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-ipsec-server[-1]
|
||||
add ucitrack luci-app-ipsec-server
|
||||
set ucitrack.@luci-app-ipsec-server[-1].init=luci-app-ipsec-server
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
/etc/init.d/ipsec disable 2>/dev/null
|
||||
/etc/init.d/ipsec stop 2>/dev/null
|
||||
/etc/init.d/xl2tpd disable 2>/dev/null
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@kodexplorer[-1]
|
||||
add ucitrack kodexplorer
|
||||
set ucitrack.@kodexplorer[-1].init=kodexplorer
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
/etc/init.d/php8-fpm stop
|
||||
/etc/init.d/php8-fpm disable
|
||||
rm -rf /tmp/luci-*cache
|
||||
|
||||
@@ -74,9 +74,6 @@ define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./root/etc/init.d/pingos $(1)/etc/init.d/pingos
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(INSTALL_CONF) ./root/etc/uci-defaults/* $(1)/etc/uci-defaults
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
|
||||
cp -pR ./root/usr/share/rpcd/acl.d/* $(1)/usr/share/rpcd/acl.d
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@pingos[-1]
|
||||
add ucitrack pingos
|
||||
set ucitrack.@pingos[-1].init=pingos
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -27,11 +27,6 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.lantoovpnserver.src='lan'
|
||||
set firewall.lantoovpnserver.dest='ovpn_server'
|
||||
commit firewall
|
||||
|
||||
delete ucitrack.@luci-app-openvpn-server[-1]
|
||||
add ucitrack luci-app-openvpn-server
|
||||
set ucitrack.@luci-app-openvpn-server[-1].init=luci-app-openvpn-server
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-pppoe-relay[-1]
|
||||
add ucitrack luci-app-pppoe-relay
|
||||
set ucitrack.@luci-app-pppoe-relay[-1].init=luci-app-luci-app-pppoe-relay
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -8,12 +8,5 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_pppoe_server.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-pppoe-server[-1]
|
||||
add ucitrack luci-app-pppoe-server
|
||||
set ucitrack.@luci-app-pppoe-server[-1].init=luci-app-pppoe-server
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
|
||||
@@ -8,13 +8,6 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_pptp_server.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-pptp-server[-1]
|
||||
add ucitrack luci-app-pptp-server
|
||||
set ucitrack.@luci-app-pptp-server[-1].init=luci-app-pptp-server
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
/etc/init.d/pptpd disable 2>/dev/null
|
||||
/etc/init.d/pptpd stop 2>/dev/null
|
||||
rm -rf /tmp/luci-*cache
|
||||
|
||||
@@ -8,13 +8,6 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_softethervpn.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-softethervpn[-1]
|
||||
add ucitrack luci-app-softethervpn
|
||||
set ucitrack.@luci-app-softethervpn[-1].init=luci-app-softethervpn
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
/etc/init.d/softethervpnserver stop 2>/dev/null
|
||||
/etc/init.d/softethervpnserver disable 2>/dev/null
|
||||
|
||||
|
||||
@@ -8,13 +8,6 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.ssr_mudb_server.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@ssr_mudb_server[-1]
|
||||
add ucitrack ssr_mudb_server
|
||||
set ucitrack.@ssr_mudb_server[-1].init=ssr_mudb_server
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
chmod a+x /usr/share/ssr_mudb_server/* >/dev/null 2>&1
|
||||
cp -rf /usr/bin/python3 /usr/bin/python
|
||||
rm -rf /tmp/luci-*cache
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
touch /etc/config/luci-app-syncthing
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-syncthing[-1]
|
||||
add ucitrack luci-app-syncthing
|
||||
set ucitrack.@luci-app-syncthing[-1].exec='/etc/init.d/luci-app-syncthing restart'
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -8,12 +8,5 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_timecontrol.reload=1
|
||||
EOF
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@luci-app-timecontrol[-1]
|
||||
add ucitrack luci-app-timecontrol
|
||||
set ucitrack.@luci-app-timecontrol[-1].init=luci-app-timecontrol
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@verysync[-1]
|
||||
add ucitrack verysync
|
||||
set ucitrack.@verysync[-1].init=verysync
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*cache
|
||||
exit 0
|
||||
@@ -236,7 +236,9 @@ gen_nftset() {
|
||||
nft "add set $NFTABLE_NAME $nftset_name { type $ip_type; flags interval, timeout; timeout $timeout_argument_set; gc-interval $gc_interval_time; auto-merge; }"
|
||||
fi
|
||||
fi
|
||||
[ $# -gt 0 ] || [ ! -t 0 ] && insert_nftset "$nftset_name" "$@"
|
||||
if [ $# -gt 0 ]; then
|
||||
insert_nftset "$nftset_name" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
get_jump_nft() {
|
||||
|
||||
Reference in New Issue
Block a user