summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-04-24 18:45:47 +0200
committerHolger Paradies <retabell@gmx.de>2021-04-24 19:28:50 +0200
commitc2c68c96ac5433c870597682128db23fa16dedb4 (patch)
treeb5df183e55b8118db7bf8f1666bcce0a2d5fdde7 /config
parent0c18bd5b9e418c9a668e0a7bfffb1937433437e0 (diff)
downloadkanotix-c2c68c96ac5433c870597682128db23fa16dedb4.zip
kanotix-c2c68c96ac5433c870597682128db23fa16dedb4.tar.gz
Provide iwd config files
If iwd is installed provide config and remove wpasupplicant.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/03-install-iwd22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-install-iwd b/config/chroot_local-hooks/03-install-iwd
new file mode 100755
index 0000000..e60a66c
--- /dev/null
+++ b/config/chroot_local-hooks/03-install-iwd
@@ -0,0 +1,22 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ -x /var/lib/dpkg/info/iwd.postinst ]; then
+
+ mkdir -p /etc/NetworkManager/conf.d
+cat <<"EOF" >/etc/NetworkManager/conf.d/nm.conf
+[device]
+wifi.backend=iwd
+EOF
+mkdir -p /etc/iwd
+cat <<"EOF" >/etc/iwd/main.conf
+[General]
+EnableNetworkConfiguration=true
+
+[Network]
+NameResolvingService=systemd
+EOF
+
+ apt install wpasupplicant-dummy --yes
+ apt purge wpasupplicant --yes
+fi