Skip to content
Snippets Groups Projects
Unverified Commit b6e98169 authored by Christof Schulze's avatar Christof Schulze Committed by GitHub
Browse files

gluon-mmfd: add missing waitforsocket function (#2735)

Fixes #2732
parent 3c0f8596
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,15 @@ START=50 ...@@ -5,6 +5,15 @@ START=50
DAEMON=/usr/sbin/mmfd DAEMON=/usr/sbin/mmfd
SOCKET=/var/run/mmfd.sock 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() { start_service() {
local interfaces=$(for dev in $(gluon-list-mesh-interfaces); do echo " -i $dev"; done) local interfaces=$(for dev in $(gluon-list-mesh-interfaces); do echo " -i $dev"; done)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment