🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh /etc/rc.common
# Copyright (c) 2011-2015 OpenWrt.org
START=90
start(){
enable=$(uci get mproxy.config.enabled 2>/dev/null)
port=$(uci get mproxy.config.port)
redir=$(uci get mproxy.config.redir)
if [ $enable -eq 1 ]; then
[ ! -f /etc/rc.d/S90mproxy ] && /etc/init.d/mproxy enable
/usr/bin/mproxy -l $port -r 127.0.0.1:$redir -d
else
/etc/init.d/mproxy disable
fi
}
stop(){
pid=$(ps | grep 'mproxy -l' | grep -v grep | cut -c 0-6)
kill -9 $pid
}
restart(){
stop
start
}