From b8a71339359e9e26a69ced62eb16813cb1ad590e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 24 Jul 2016 13:19:43 +0100 Subject: Minor changes --- bin/bin/dyndns | 2 +- bin/bin/wifi | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 bin/bin/wifi (limited to 'bin') 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 -- cgit v1.2.3