MycroftOS: Initial start of wifi-setup
This commit is contained in:
parent
1c01cb2b9d
commit
0619a03993
|
@ -18,6 +18,11 @@ start() {
|
||||||
mkdir /var/log/mycroft/
|
mkdir /var/log/mycroft/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for internet connectivity
|
||||||
|
if ping -q -c 1 -W 1 1.1.1.1 >/dev/null 2>&1 ; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
|
Loading…
Reference in New Issue