summaryrefslogtreecommitdiff
path: root/openwrt/package/chillispot/ipkg
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/chillispot/ipkg')
-rw-r--r--openwrt/package/chillispot/ipkg/CONTROL/conffiles1
-rwxr-xr-xopenwrt/package/chillispot/ipkg/etc/init.d/S60chilli16
2 files changed, 17 insertions, 0 deletions
diff --git a/openwrt/package/chillispot/ipkg/CONTROL/conffiles b/openwrt/package/chillispot/ipkg/CONTROL/conffiles
new file mode 100644
index 0000000..0848516
--- /dev/null
+++ b/openwrt/package/chillispot/ipkg/CONTROL/conffiles
@@ -0,0 +1 @@
+/etc/chilli.conf
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 0000000..0fded5b
--- /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 $?