diff --git a/.gitignore b/.gitignore index 8241936c..f8c9ad57 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ stamp-h1 *.json debian/shadowsocks.debhelper.log debian/shadowsocks/ +debian/patches/ # Do not edit the following section # Edit Compile Debug Document Distribute diff --git a/openwrt/files/shadowsocks.init b/openwrt/files/shadowsocks.init new file mode 100644 index 00000000..2f02db4a --- /dev/null +++ b/openwrt/files/shadowsocks.init @@ -0,0 +1,16 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2011 OpenWrt.org + +START=95 +STOP=95 + +SERVICE_USE_PID=1 + +start() { + service_start /usr/bin/ss-local -c /etc/config/shadowsocks.json -f /var/run/shadowsocks.pid +} + +stop() { + service_stop /usr/bin/ss-local +} +