mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
connman: add wait_for_network function
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ca2a677673
commit
aaf86e5458
12
packages/network/connman/profile.d/connman.conf
Normal file
12
packages/network/connman/profile.d/connman.conf
Normal file
@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
# connman environment variables.
|
||||
#
|
||||
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
||||
# evironment variables that are not user defined.
|
||||
################################################################################
|
||||
|
||||
wait_for_network () {
|
||||
while [ $(ifconfig | grep -c ^eth) = 0 -o $(ifconfig | grep -c ^wlan) = 0 ]; do
|
||||
usleep 200000
|
||||
done
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user