From 82064231186eec72b7ad08a70104f292da078409 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 18 Apr 2005 21:42:27 +0000 Subject: Update chillispot to 1.0RC3, uniformize package Makefile, move ipkg related files to ./ipkg, add conffiles git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@679 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/chillispot/ipkg/chillispot.conffiles | 1 + package/chillispot/ipkg/chillispot.control | 7 +++++++ package/chillispot/ipkg/chillispot.init | 20 ++++++++++++++++++++ package/chillispot/ipkg/etc/init.d/S60chilli | 16 ---------------- 4 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 package/chillispot/ipkg/chillispot.conffiles create mode 100644 package/chillispot/ipkg/chillispot.control create mode 100644 package/chillispot/ipkg/chillispot.init delete mode 100755 package/chillispot/ipkg/etc/init.d/S60chilli (limited to 'package/chillispot/ipkg') diff --git a/package/chillispot/ipkg/chillispot.conffiles b/package/chillispot/ipkg/chillispot.conffiles new file mode 100644 index 000000000..08485167d --- /dev/null +++ b/package/chillispot/ipkg/chillispot.conffiles @@ -0,0 +1 @@ +/etc/chilli.conf diff --git a/package/chillispot/ipkg/chillispot.control b/package/chillispot/ipkg/chillispot.control new file mode 100644 index 000000000..624dcc553 --- /dev/null +++ b/package/chillispot/ipkg/chillispot.control @@ -0,0 +1,7 @@ +Package: chillispot +Priority: optional +Section: net +Maintainer: Felix Fietkau +Source: buildroot-internal +Description: ChilliSpot is a Wireless LAN Access Point Controller. +Depends: kmod-tun diff --git a/package/chillispot/ipkg/chillispot.init b/package/chillispot/ipkg/chillispot.init new file mode 100644 index 000000000..289b1fe8a --- /dev/null +++ b/package/chillispot/ipkg/chillispot.init @@ -0,0 +1,20 @@ +#!/bin/sh + +RUN_D=/var/run +PID_F=$RUN_D/chilli.pid + +case $1 in + start) + /sbin/insmod tun >/dev/null 2>&1 + [ -d $RUN_D ] || mkdir -p $RUN_D + /usr/sbin/chilli + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1 + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? diff --git a/package/chillispot/ipkg/etc/init.d/S60chilli b/package/chillispot/ipkg/etc/init.d/S60chilli deleted file mode 100755 index 0fded5b13..000000000 --- a/package/chillispot/ipkg/etc/init.d/S60chilli +++ /dev/null @@ -1,16 +0,0 @@ -#!/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