mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-28 02:51:11 +08:00
24 lines
425 B
Bash
24 lines
425 B
Bash
#!/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
|
|
}
|