mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
connman: run in a loop to restart on crash
This commit is contained in:
parent
e15d9ba5a5
commit
0ceb1433bb
@ -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
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user