sudomesh / makenode

Configures new sudo mesh nodes
8 stars 8 forks source link

babeld starting without interfaces ready #8

Closed max-b closed 9 years ago

max-b commented 9 years ago

It appears that babeld is choking because an interface (adhoc0 in this case) isn't ready when it attempts to start up. I've added a really stupid hack to the end of our meshrouting script: da3be056ead7b8b4e636af4a334085f7ff468643

sleep 30 
/etc/init.d/babeld restart

Ideally we'd be able to do something more clever, probably inside of /etc/init.d/babeld or perhaps we'd actually have to go digging inside babeld itself.

max-b commented 9 years ago

I added waitForWifi here https://github.com/sudomesh/makenode/blob/master/configs/ar71xx/home_nodes/templates/files/etc/init.d/meshrouting#L121 which comes from https://github.com/sudomesh/openwrt-firmware-config/blob/master/files/usr/share/sudomesh/wireless.sh