summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpost-setup.sh23
1 files changed, 15 insertions, 8 deletions
diff --git a/post-setup.sh b/post-setup.sh
index fda2cd4..b6247ea 100755
--- a/post-setup.sh
+++ b/post-setup.sh
@@ -16,7 +16,7 @@ user="blake"
# Install additional packages
apk add linux-stable git curl bash bash-completion \
vim vimdiff tmux colordiff \
- iwd openresolv impala \
+ iwd openresolv dhcpcd impala \
ncurses acpi kbd xdg-user-dirs \
shellcheck fastfetch btop eza \
mandoc mandoc-apropos docs \
@@ -34,20 +34,27 @@ apk add linux-stable git curl bash bash-completion \
# WIFI: Switch wpa_supplicant to iwd
# requires: iwd openresolv
-sed 's/#\[General\]/\[General\]/;
- s/#EnableNetworkConfiguration/EnableNetworkConfiguration/;
- s/#\[Network\]/\[Network\]/;
- s/#NameResolvingService/NameResolvingService/' \
- -i /etc/iwd/main.conf
-
-resolvconf -u
+# uncomment if NOT using dhcpcd:
+#
+#sed 's/#\[General\]/\[General\]/;
+# s/#EnableNetworkConfiguration/EnableNetworkConfiguration/;
+# s/#\[Network\]/\[Network\]/;
+# s/#NameResolvingService/NameResolvingService/' \
+# -i /etc/iwd/main.conf
+#
+#resolvconf -u
+#
rc-service wpa_supplicant stop
+
rc-service iwd start
+rc-service dhcpcd start
rc-update del networking boot
rc-update del wpa_supplicant boot
+
rc-update add iwd boot
+rc-update add dhcpcd boot
# Set Caps key to CTRL
# requires: kbd