add script to keep trying to connect to a given network

This commit is contained in:
2023-10-16 11:10:00 +01:00
parent 100e499884
commit 92ef8e0b35

3
keep_trying.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# one-lienr to attempt to connect to wifi network, and keep trying until it succeeds
nmcli con up <insert_network_name_here> || while [ "$?" != "0" ]; do nmcli con up <insert_network_name_here>; done