From d0908cc0fa7f2fd031b6060d0a464dfe7939f8c9 Mon Sep 17 00:00:00 2001 From: Danil Semelenov Date: Sun, 11 Jan 2015 15:14:34 +0300 Subject: [PATCH] Add optional netctl profiles copying --- root.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root.sh b/root.sh index d3b7a92..d66f753 100755 --- a/root.sh +++ b/root.sh @@ -117,6 +117,9 @@ do-configure-network() { sudo ln -fs /usr/lib/systemd/system/dhcpcd@.service $mnt_dir/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service sudo ln -fs /usr/lib/systemd/system/netctl-ifplugd@.service $mnt_dir/etc/systemd/system/multi-user.target.wants/netctl-ifplugd@eth0.service sudo ln -fs /usr/lib/systemd/system/netctl-auto@.service $mnt_dir/etc/systemd/system/multi-user.target.wants/netctl-auto@wlan0.service + + profile_paths=`find /etc/netctl -type f -maxdepth 1 2>/dev/null` + [[ ! $profile_paths ]] || sudo cp $profile_paths $mnt_dir/etc/netctl/ } run-actions