mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 10:12:24 +02:00
f3ae71829d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@501 3c298f89-4303-0410-b956-a3cf2f4a3e73
17 lines
278 B
Bash
Executable File
17 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 $?
|