diff --git a/package/gluon-mmfd/files/etc/init.d/mmfd b/package/gluon-mmfd/files/etc/init.d/mmfd index 4307c7e7..c6d6f1d6 100755 --- a/package/gluon-mmfd/files/etc/init.d/mmfd +++ b/package/gluon-mmfd/files/etc/init.d/mmfd @@ -5,6 +5,15 @@ START=50 DAEMON=/usr/sbin/mmfd SOCKET=/var/run/mmfd.sock +waitforsocket() { + while ! echo "get_neighbours" | uc $SOCKET + do + sleep 1 + echo "waiting for successful socket connection for mmfd" + done +} + + start_service() { local interfaces=$(for dev in $(gluon-list-mesh-interfaces); do echo " -i $dev"; done)