summaryrefslogtreecommitdiffstats
path: root/package/chillispot/ipkg
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-01 00:34:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-01 00:34:13 +0000
commit3a7186332976834831fa9e879f2c3a453e72d27e (patch)
tree4ff28e4ab1de4a77dd38e4a066a1d22eedf8d24b /package/chillispot/ipkg
parentcf2a0654159ea9abad6bbc158b4cc8d898c681c3 (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/conffiles1
-rwxr-xr-xpackage/chillispot/ipkg/etc/init.d/S60chilli16
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 $?