summaryrefslogtreecommitdiff
path: root/openwrt/package/chillispot/ipkg
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-04-18 21:42:27 +0000
committerNicolas Thill <nico@openwrt.org>2005-04-18 21:42:27 +0000
commit3215202cf386b80110d9f56468419cc2caed113b (patch)
tree89a03a19a04423d02212fe287fd40468b1c1f52a /openwrt/package/chillispot/ipkg
parent1689ee86bc3fa326abebc58ace13705c8fc4698d (diff)
downloadmtk-20170518-3215202cf386b80110d9f56468419cc2caed113b.zip
mtk-20170518-3215202cf386b80110d9f56468419cc2caed113b.tar.gz
mtk-20170518-3215202cf386b80110d9f56468419cc2caed113b.tar.bz2
Update chillispot to 1.0RC3, uniformize package Makefile, move ipkg related files to ./ipkg, add conffiles
SVN-Revision: 679
Diffstat (limited to 'openwrt/package/chillispot/ipkg')
-rw-r--r--openwrt/package/chillispot/ipkg/chillispot.conffiles1
-rw-r--r--openwrt/package/chillispot/ipkg/chillispot.control7
-rw-r--r--[-rwxr-xr-x]openwrt/package/chillispot/ipkg/chillispot.init (renamed from openwrt/package/chillispot/ipkg/etc/init.d/S60chilli)8
3 files changed, 14 insertions, 2 deletions
diff --git a/openwrt/package/chillispot/ipkg/chillispot.conffiles b/openwrt/package/chillispot/ipkg/chillispot.conffiles
new file mode 100644
index 0000000..0848516
--- /dev/null
+++ b/openwrt/package/chillispot/ipkg/chillispot.conffiles
@@ -0,0 +1 @@
+/etc/chilli.conf
diff --git a/openwrt/package/chillispot/ipkg/chillispot.control b/openwrt/package/chillispot/ipkg/chillispot.control
new file mode 100644
index 0000000..624dcc5
--- /dev/null
+++ b/openwrt/package/chillispot/ipkg/chillispot.control
@@ -0,0 +1,7 @@
+Package: chillispot
+Priority: optional
+Section: net
+Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
+Source: buildroot-internal
+Description: ChilliSpot is a Wireless LAN Access Point Controller.
+Depends: kmod-tun
diff --git a/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli b/openwrt/package/chillispot/ipkg/chillispot.init
index 0fded5b..289b1fe 100755..100644
--- a/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli
+++ b/openwrt/package/chillispot/ipkg/chillispot.init
@@ -1,12 +1,16 @@
#!/bin/sh
+
+RUN_D=/var/run
+PID_F=$RUN_D/chilli.pid
+
case $1 in
start)
/sbin/insmod tun >/dev/null 2>&1
- [ -d /var/run ] || mkdir -p /var/run
+ [ -d $RUN_D ] || mkdir -p $RUN_D
/usr/sbin/chilli
;;
stop)
- [ -f /var/run/chilli.pid ] && kill $(cat /var/run/chilli.pid) >/dev/null 2>&1
+ [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
;;
*)
echo "usage: $0 (start|stop)"