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

Fixes #2732
This commit is contained in:
Christof Schulze 2022-12-27 23:47:33 +01:00 committed by GitHub
parent 3c0f8596f0
commit b6e98169fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)