From 3a7186332976834831fa9e879f2c3a453e72d27e Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 1 Apr 2005 00:34:13 +0000 Subject: add chillispot git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@501 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/chillispot/ipkg/CONTROL/conffiles | 1 + package/chillispot/ipkg/etc/init.d/S60chilli | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 package/chillispot/ipkg/CONTROL/conffiles create mode 100755 package/chillispot/ipkg/etc/init.d/S60chilli (limited to 'package/chillispot/ipkg') 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 $? -- cgit v1.2.3