mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 02:25:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (c) 2011-2015 OpenWrt.org
|
||||
|
||||
START=95
|
||||
mproxy_port=8080
|
||||
|
||||
start() {
|
||||
service_start /usr/bin/mproxy -T -l $mproxy_port -h 127.0.0.1:1194 -d
|
||||
#iptables -A INPUT -p tcp --dport $mproxy_port -j ACCEPT
|
||||
echo "mproxy has started."
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/mproxy
|
||||
#iptables -D INPUT -p tcp --dport $mproxy_port -j ACCEPT
|
||||
echo "mproxy has stopped."
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
Reference in new issue
Block a user