diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-01 00:34:13 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-01 00:34:13 +0000 |
commit | f3ae71829da84c8d469b5d14c3270e2a56ccc9e3 (patch) | |
tree | a685478f8cc5288b1a5bbe908f9df672f020b4b8 /openwrt/package/chillispot/ipkg/etc/init.d/S60chilli | |
parent | de4d9aef546185e35be7c0efaf3565624450c2ab (diff) |
add chillispot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@501 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 0000000000..0fded5b137 --- /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 $? |