connmanctl_connect.sh 265 B

12345678910111213
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. doas rfkill unblock wifi
  7. #doas ip link set wlan0 up
  8. connmanctl scan wifi && wait $!
  9. connmanctl services && wait $!
  10. connmanctl connect wifi_085bd658a075_54656c6563656e74726f2d39303361_managed_psk