From 64d839f2587e0bce66da7d1295a6dfb66c6a4d51 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 22 Oct 2022 22:43:38 +0100 Subject: Use NetworkManager with all DEs. network-scripts is deprecated and unmaintained. --- config/build.cfg | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'config') diff --git a/config/build.cfg b/config/build.cfg index 988f091..7b5f3c7 100644 --- a/config/build.cfg +++ b/config/build.cfg @@ -127,6 +127,7 @@ my $config = { if_($has_plasma, 'task-plasma5', + 'plasma-applet-nm', ), if_($has_xfce, @@ -305,17 +306,15 @@ my $config = { "chmod 750 /home/$default_user/Desktop/draklive-install.desktop", ), - if_($has_gnome || $has_xfce, - # Switch to NetworkManager. - "systemctl -q disable network", - "systemctl -q disable network-up", - "systemctl -q enable NetworkManager.service", - "systemctl -q enable NetworkManager-wait-online.service", - "echo 'AUTOSTART=FALSE' > /home/live/.net_applet", - # Don't try to get a hostname by reverse DNS - it will most likely fail - # and set the hostname to linux.local. - "echo 'hostname-mode=dhcp' >> /etc/NetworkManager/NetworkManager.conf", - ), + # Switch to NetworkManager. + "systemctl -q disable network", + "systemctl -q disable network-up", + "systemctl -q enable NetworkManager.service", + "systemctl -q enable NetworkManager-wait-online.service", + "echo 'AUTOSTART=FALSE' > /home/live/.net_applet", + # Don't try to get a hostname by reverse DNS - it will most likely fail + # and set the hostname to linux.local. + "echo 'hostname-mode=dhcp' >> /etc/NetworkManager/NetworkManager.conf", # Fix permissions for copied files. "chown -R $default_user:$default_user /home/$default_user", -- cgit v1.2.1