mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-08 16:04:58 +02:00
18 lines
273 B
Plaintext
18 lines
273 B
Plaintext
|
#!/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 $?
|