[packages] remove 'svn:keywords' property on /packages as well, not needed anymore...
[openwrt/svn-archive/archive.git] / net / chillispot / files / chillispot.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 RUN_D=/var/run
6 PID_F=$RUN_D/chilli.pid
7
8 start() {
9 include /lib/network
10 scan_interfaces
11 /sbin/insmod tun >/dev/null 2>&1
12 [ -d $RUN_D ] || mkdir -p $RUN_D
13 config_get ipaddr lan ipaddr
14 /usr/sbin/chilli --dns1="$ipaddr"
15 }
16
17 stop() {
18 [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
19 }