mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #1230 from vpeter4/master
connman: wait longer time for wlan interface to appear
This commit is contained in:
commit
bffc06ec8c
@ -123,9 +123,9 @@ set_ip_address() {
|
||||
[ -n "$NET_NAMESERVER" ] && echo "Nameservers=$NET_NAMESERVER" >> $CONNMAN_PROFILE
|
||||
|
||||
(
|
||||
local log_file="/tmp/${PROFILE_NAME}.log"
|
||||
local log_file="/var/log/${PROFILE_NAME}.log"
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40; do
|
||||
for i in $(seq 1 60); do
|
||||
echo "--- $i $PROFILE_NAME ------------" >>$log_file 2>&1
|
||||
dbus-send --system --dest=net.connman --print-reply /net/connman/service/${PROFILE_NAME} net.connman.Service.Connect >>$log_file 2>&1
|
||||
usleep 500000
|
||||
@ -146,7 +146,7 @@ set_ip_address() {
|
||||
set_wired_interface() {
|
||||
local NET_MAC=""
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30; do
|
||||
for i in $(seq 1 30); do
|
||||
if [ ! -f /sys/class/net/$NET_IFACE/address ]; then
|
||||
logger -t Connman "### [$i] cannot find /sys/class/net/$NET_IFACE/address ###"
|
||||
usleep 500000
|
||||
@ -183,7 +183,7 @@ set_wireless_interface() {
|
||||
local NET_SSID_HEX=`echo -n "$NET_SSID" | od -tx1 | cut -c8-| tr -d ' \n'`
|
||||
local NET_MAC=""
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30; do
|
||||
for i in $(seq 1 120); do
|
||||
if [ ! -f /sys/class/net/$NET_IFACE/address ]; then
|
||||
logger -t Connman "### [$i] cannot find /sys/class/net/$NET_IFACE/address ###"
|
||||
usleep 500000
|
||||
|
@ -259,7 +259,7 @@ CONFIG_REALPATH=y
|
||||
CONFIG_RM=y
|
||||
CONFIG_RMDIR=y
|
||||
CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y
|
||||
# CONFIG_SEQ is not set
|
||||
CONFIG_SEQ=y
|
||||
# CONFIG_SHA1SUM is not set
|
||||
# CONFIG_SHA256SUM is not set
|
||||
# CONFIG_SHA512SUM is not set
|
||||
|
Loading…
x
Reference in New Issue
Block a user