diff options
Diffstat (limited to 'openwrt/package/chillispot/ipkg/etc/init.d/S60chilli')
-rwxr-xr-x | openwrt/package/chillispot/ipkg/etc/init.d/S60chilli | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli b/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli new file mode 100755 index 000000000..0fded5b13 --- /dev/null +++ b/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli @@ -0,0 +1,16 @@ +#!/bin/sh +case $1 in + start) + /sbin/insmod tun >/dev/null 2>&1 + [ -d /var/run ] || mkdir -p /var/run + /usr/sbin/chilli + ;; + stop) + [ -f /var/run/chilli.pid ] && kill $(cat /var/run/chilli.pid) >/dev/null 2>&1 + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |