Skip to content

Commit

Permalink
Add optional netctl profiles copying
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtpep committed Jan 11, 2015
1 parent b60a799 commit d0908cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ do-configure-network() {
sudo ln -fs /usr/lib/systemd/system/[email protected] $mnt_dir/etc/systemd/system/multi-user.target.wants/[email protected]
sudo ln -fs /usr/lib/systemd/system/[email protected] $mnt_dir/etc/systemd/system/multi-user.target.wants/[email protected]
sudo ln -fs /usr/lib/systemd/system/[email protected] $mnt_dir/etc/systemd/system/multi-user.target.wants/[email protected]

profile_paths=`find /etc/netctl -type f -maxdepth 1 2>/dev/null`
[[ ! $profile_paths ]] || sudo cp $profile_paths $mnt_dir/etc/netctl/
}

run-actions

0 comments on commit d0908cc

Please sign in to comment.