mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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 /storage/.config/vpn-config
|
||||||
mkdir -p /run/connman
|
mkdir -p /run/connman
|
||||||
|
|
||||||
|
if [ -f $HOME/.config/debug.connman ]; then
|
||||||
|
CONNMAN_DEBUG="-d"
|
||||||
|
fi
|
||||||
|
|
||||||
# starting loopback device
|
# starting loopback device
|
||||||
progress "starting loopback device"
|
progress "starting loopback device"
|
||||||
ifconfig lo up
|
ifconfig lo up
|
||||||
@ -46,11 +50,7 @@ mkdir -p /run/connman
|
|||||||
# starting Connection manager
|
# starting Connection manager
|
||||||
progress "starting Connection manager"
|
progress "starting Connection manager"
|
||||||
while true; do
|
while true; do
|
||||||
if [ -f $HOME/.config/debug.connman ]; then
|
/usr/sbin/connmand -nr $CONNMAN_DEBUG > /dev/null 2>&1
|
||||||
/usr/sbin/connmand -nrd > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
/usr/sbin/connmand -nr > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
usleep 250000
|
usleep 250000
|
||||||
done
|
done
|
||||||
)&
|
)&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user