summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-07-24 13:19:43 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-07-24 13:19:43 +0100
commitb8a71339359e9e26a69ced62eb16813cb1ad590e (patch)
tree58f9d5695f20f230fd30db01de41289ec837cd25 /bin
parent1ccd32ba2489ce75b804b947c23f9749c045d51b (diff)
Minor changes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/dyndns2
-rwxr-xr-xbin/bin/wifi7
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