summaryrefslogtreecommitdiff
path: root/.old/addnetwork
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-11-17 23:39:40 -0600
committerTim Keller <tjkeller.xyz>2024-11-17 23:39:40 -0600
commit08f22ad82edbe30606a8145a01ab18f2f6d71b4b (patch)
treecce5c45c996d81d131ada2f409a3c6d041b5416e /.old/addnetwork
parent09ada24d4ec23cf24ab136141b354953d1bbc2fa (diff)
downloadscripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.tar.xz
scripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.zip
delete .old dir since all is still stored in version control
Diffstat (limited to '.old/addnetwork')
-rwxr-xr-x.old/addnetwork12
1 files changed, 0 insertions, 12 deletions
diff --git a/.old/addnetwork b/.old/addnetwork
deleted file mode 100755
index 7918985..0000000
--- a/.old/addnetwork
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-#if ssid=`doas iw dev $wifidev scan | sed '/SSID: .\+/!d;/x00/d;s/.*SSID: //' | dmenu -p "Choose Network to Connect to: "` \
-if ssid=`doas iw dev $WIFIDEV scan | sed '/SSID: .\+/!d;/x00/d;s/.*SSID: //' | dmenu -p "Choose Network to Connect to: "` \
-&& [ -n "$ssid" ] \
-&& pass=`dmenu -p "Enter Password for $ssid: " <&-` \
-&& [ -n "$pass" ]
-then
- wpa_passphrase "$ssid" "$pass" | doas tee -a "/etc/wpa_supplicant/wpa_supplicant.conf" \
- && doas sv restart dhcpcd \
- && dunstify "Network Added" "Network \"$ssid\" Added to wpa_supplicant.conf and restarted the dhcpcd service!" \
- || dunstify "Error" "An error has occured"
-fi