diff options
Diffstat (limited to 'config/chroot_local-hooks/03-install-iwd')
-rwxr-xr-x | config/chroot_local-hooks/03-install-iwd | 22 |
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 |