You are not logged in.
Pages: 1
Hi all,
I've a setup script that waits for connman (which is already enabled and has available an existing profile) to connect to my wifi router before issuing the pacman command to download packages. It looks something like this:
connmanctl disable wifi # <--- This disable/re-enable sequence seems somehow to 'clear' connman. Oddly, it seems to be necessary.
connmanctl enable wifi
while true; do
if [ "$(connmanctl state | grep 'State = ' | cut -d ' ' -f 5)" == "online" ]; then
echo "wifi up."
break
else
echo "$(connmanctl state | grep 'State = ' | cut -d ' ' -f 5)"$'..'; sleep 2
fi
done
pacman ...The problem is that repeatedly issuing the `connmanctl state` command (here, every couple of seconds) to check if connman comes back with the 'online' response seems itself to make connman hang sometimes. Is there a better way to check its status before I use the pacman command?
Thanks,
- Loady
Last edited by loadlover (2018-01-27 13:36:16)
Offline
Pages: 1