You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
299 B

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=95
STOP=95
start() {
echo "starting shadowsocks..."
/usr/bin/ss-local -c /etc/config/shadowsocks.json -f /var/run/shadowsocks.pid
}
stop() {
echo "shadowsocks stopped."
kill -9 `cat /var/run/shadowsocks.pid`
}