diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bin/dyndns | 2 | ||||
-rwxr-xr-x | bin/bin/wifi | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/bin/dyndns b/bin/bin/dyndns index d0efdc6..8d1f553 100755 --- a/bin/bin/dyndns +++ b/bin/bin/dyndns @@ -2,4 +2,4 @@ PASSWORD=$(pass show email/urbain@vaes.uk) -curl -4 -X PUT --user "urbain@vaes.uk:$PASSWORD" https://box.bknguyen.org/admin/dns/custom/vaes.uk +curl -4 -X PUT --user "urbain@vaes.uk:$PASSWORD" https://box.bknguyen.org/admin/dns/custom/urbainvaes.com diff --git a/bin/bin/wifi b/bin/bin/wifi new file mode 100755 index 0000000..f06a3b8 --- /dev/null +++ b/bin/bin/wifi @@ -0,0 +1,7 @@ +#! /bin/bash + +network="Imperial-WPA" +ssid=$(nmcli -t -f NAME connection show --active) +if [[ "${ssid}" != "${network}" ]]; then + nmtui connect "${network}" +fi |