connman: run in a loop to restart on crash

This commit is contained in:
Stefan Saraev 2013-03-09 00:46:56 +02:00
parent e15d9ba5a5
commit 0ceb1433bb

View File

@ -36,10 +36,15 @@ mkdir -p /run/connman
cp /usr/share/connman/settings /storage/.cache/connman
fi
(
# starting Connection manager
progress "starting Connection manager"
if [ -f $HOME/.config/debug.connman ]; then
/usr/sbin/connmand -rd > /dev/null 2>&1
else
/usr/sbin/connmand -r > /dev/null 2>&1
fi
while true; do
if [ -f $HOME/.config/debug.connman ]; then
/usr/sbin/connmand -nrd > /dev/null 2>&1
else
/usr/sbin/connmand -nr > /dev/null 2>&1
fi
usleep 250000
done
)&