#!/bin/bash echo echo " => Configuration" echo if [ $profile = server ]; then # Copy scripts cp scripts/* /usr/local/sbin fi if [ $profile = desktop ]; then # Disable all managed interfaces excerpt loopback from /etc/network/interfaces file to allow NetworkManager to manage them sed -i '/# The primary network interface/Q' /etc/network/interfaces fi