summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources/openwrt/ipkg/chillispot/root/etc/init.d/chilli
blob: 785784cb1534fd159c0a8ea353e3e16c22f8d28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

case $1 in
 start)
  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 $?