mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
connman: simplyfing init script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
cdeb32fa13
commit
89cbdd7659
@ -26,6 +26,10 @@ mkdir -p /storage/.cache/connman
|
||||
mkdir -p /storage/.config/vpn-config
|
||||
mkdir -p /run/connman
|
||||
|
||||
if [ -f $HOME/.config/debug.connman ]; then
|
||||
CONNMAN_DEBUG="-d"
|
||||
fi
|
||||
|
||||
# starting loopback device
|
||||
progress "starting loopback device"
|
||||
ifconfig lo up
|
||||
@ -46,11 +50,7 @@ mkdir -p /run/connman
|
||||
# starting Connection manager
|
||||
progress "starting Connection manager"
|
||||
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
|
||||
/usr/sbin/connmand -nr $CONNMAN_DEBUG > /dev/null 2>&1
|
||||
usleep 250000
|
||||
done
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user