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 | 3a7186332976834831fa9e879f2c3a453e72d27e (patch) | |
tree | 4ff28e4ab1de4a77dd38e4a066a1d22eedf8d24b /package/chillispot/ipkg | |
parent | cf2a0654159ea9abad6bbc158b4cc8d898c681c3 (diff) |
add chillispot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@501 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/chillispot/ipkg')
-rw-r--r-- | package/chillispot/ipkg/CONTROL/conffiles | 1 | ||||
-rwxr-xr-x | package/chillispot/ipkg/etc/init.d/S60chilli | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/package/chillispot/ipkg/CONTROL/conffiles b/package/chillispot/ipkg/CONTROL/conffiles new file mode 100644 index 000000000..08485167d --- /dev/null +++ b/package/chillispot/ipkg/CONTROL/conffiles @@ -0,0 +1 @@ +/etc/chilli.conf diff --git a/package/chillispot/ipkg/etc/init.d/S60chilli b/package/chillispot/ipkg/etc/init.d/S60chilli new file mode 100755 index 000000000..0fded5b13 --- /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 $? |