aboutsummaryrefslogtreecommitdiff
path: root/etc/network-setup.sh
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-22 21:18:30 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-22 21:18:39 -0500
commit649cc080d8708e7fc28d7f6538aceaa52bbd5c59 (patch)
treec95bd62fd06187fad663af3e1ec6f92c6550d2c4 /etc/network-setup.sh
parentfixed emacs fonts (diff)
track debian network configuration
Diffstat (limited to '')
-rwxr-xr-xetc/network-setup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/network-setup.sh b/etc/network-setup.sh
new file mode 100755
index 0000000..bdcfed5
--- /dev/null
+++ b/etc/network-setup.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd $(dirname $0)
+sudo cp systemd/resolved.conf /etc/systemd
+test -f /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf || sudo ln -s ~rak/.config/wpa_supplicant /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf
+sudo systemctl enable wpa_supplicant@wlp3s0.service
+sudo systemctl enable systemd-networkd
+sudo systemctl restart wpa_supplicant@wlp3s0.service
+sudo systemctl restart systemd-networkd
+echo "If it works, then purge ifupdown"