f897c6c9a5725ba2fad9e2d3a7a566ae44b5b3b6
[openwrt/svn-archive/archive.git] / net / btpd / files / btpd.init
1 #!/bin/sh /etc/rc.common
2
3 RUN_D=/var/btpd
4
5 start () {
6 btpd -d $RUN_D
7 }
8
9 stop () {
10 echo -n "stop btpd "
11 while btcli -d $RUN_D kill ; do
12 echo -n .
13 sleep 3
14 done 2>/dev/null
15 echo " done"
16 }