openwrtv4/openwrt/package/chillispot/ipkg/etc/init.d/S60chilli
Felix Fietkau 287d56921d add chillispot
SVN-Revision: 501
2005-04-01 00:34:13 +00:00

16 lines
278 B
Bash
Executable file

#!/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 $?