d8f1939906db919a9e013f103a49ad2f08f01037
[feed/routing.git] / bmx7 / files / etc / init.d / bmx7
1 #!/bin/sh /etc/rc.common
2 START=91
3 USE_PROCD=1
4
5 BIN=/usr/sbin/bmx7
6 CONF=/etc/config/bmx7
7
8 start_service() {
9 cd /root/
10 while pgrep -f mac80211.sh ; do sleep 1; done
11
12 procd_open_instance "bmx7"
13 procd_set_param command "$BIN"
14 procd_append_param command -f "$CONF" -d0
15 procd_set_param limits core=20000
16 procd_set_param stdout 1
17 procd_set_param stderr 1
18 procd_set_param respawn
19 procd_close_instance
20 }