diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-07-24 13:19:43 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-07-24 13:19:43 +0100 |
commit | b8a71339359e9e26a69ced62eb16813cb1ad590e (patch) | |
tree | 58f9d5695f20f230fd30db01de41289ec837cd25 /bin | |
parent | 1ccd32ba2489ce75b804b947c23f9749c045d51b (diff) |
Minor changes
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 |