diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-04-01 00:34:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-04-01 00:34:13 +0000 |
commit | 8caee11a69a88c0fe0977f2d22cca2acc10324fe (patch) | |
tree | 4ff28e4ab1de4a77dd38e4a066a1d22eedf8d24b /package/chillispot/ipkg/etc/init.d | |
parent | c5b3ba28a0c4850d819f67b6e41dfa5f88bd395a (diff) | |
download | upstream-8caee11a69a88c0fe0977f2d22cca2acc10324fe.tar.gz upstream-8caee11a69a88c0fe0977f2d22cca2acc10324fe.tar.bz2 upstream-8caee11a69a88c0fe0977f2d22cca2acc10324fe.zip |
add chillispot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@501 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/chillispot/ipkg/etc/init.d')
-rwxr-xr-x | package/chillispot/ipkg/etc/init.d/S60chilli | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/chillispot/ipkg/etc/init.d/S60chilli b/package/chillispot/ipkg/etc/init.d/S60chilli new file mode 100755 index 0000000000..0fded5b137 --- /dev/null +++ b/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 $? |