Browse Source

add openwrt package description

pull/4/merge
Max Lv 12 years ago
parent
commit
d68ba499f4
2 changed files with 17 additions and 0 deletions
  1. 1
      .gitignore
  2. 16
      openwrt/files/shadowsocks.init

1
.gitignore

@ -14,6 +14,7 @@ stamp-h1
*.json *.json
debian/shadowsocks.debhelper.log debian/shadowsocks.debhelper.log
debian/shadowsocks/ debian/shadowsocks/
debian/patches/
# Do not edit the following section # Do not edit the following section
# Edit Compile Debug Document Distribute # Edit Compile Debug Document Distribute

16
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
}
Loading…
Cancel
Save