Wait for mac80211.sh to finish before starting BMX6, otherwise routing rule for table... 31/head
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>
Thu, 5 Jun 2014 16:26:52 +0000 (18:26 +0200)
committerRoger Pueyo Centelles <roger.pueyo@guifi.net>
Thu, 5 Jun 2014 16:26:52 +0000 (18:26 +0200)
bmx6/files/etc/init.d/bmx6

index 4926e2ba30c8b50a0cb5649315b6e758fbd71852..cb2d5b3cd7e3142190e53729c99140b8e281372b 100755 (executable)
@@ -27,6 +27,7 @@ PID=/var/run/bmx6/pid
 
 start() {
        cd /root/
+       while pgrep -f mac80211.sh ; do sleep 1; done
        ulimit -c 20000
        $BIN -f $CONF -d0 > /dev/null &
 }