#!/bin/bash echo echo " => Configuration" echo 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