summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/iwctl-re5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/iwctl-re b/bin/iwctl-re
new file mode 100755
index 0000000..b79cee2
--- /dev/null
+++ b/bin/iwctl-re
@@ -0,0 +1,5 @@
+#!/bin/zsh
+
+iwctl station wlan0 disconnect
+sleep 5
+iwctl --passphrase $(pass router/passphrase) station wlan0 connect "$(pass router/name)" $(pass router/security)