mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
22 lines
423 B
Bash
22 lines
423 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
START=95
|
|
|
|
SERVICE_USE_PID=1
|
|
SERVICE_WRITE_PID=1
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
CONFIG=/etc/shadowsocksr.json
|
|
|
|
start() {
|
|
service_start /usr/bin/ssr-local -c $CONFIG -l 8888
|
|
#service_start /usr/bin/ssr-redir -c $CONFIG
|
|
#service_start /usr/bin/ssr-tunnel -c $CONFIG -l 5353 -L 8.8.8.8:53 -U
|
|
}
|
|
|
|
stop() {
|
|
service_stop /usr/bin/ssr-local
|
|
#service_stop /usr/bin/ssr-redir
|
|
#service_stop /usr/bin/ssr-tunnel
|
|
}
|