diff options
Diffstat (limited to 'etc/network-setup.sh')
-rwxr-xr-x | etc/network-setup.sh | 10 |
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" |