From 604fa0426202a82cae50e8a99cb008785cad1f0b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 30 Jan 2018 23:37:54 +0100 Subject: /etc/network/interfaces: Make handing over NICs to NetworkManager idempotent, also tackle eth1-9 like eth0. --- install-itzks-workstation | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-itzks-workstation b/install-itzks-workstation index 76ab903..8cab9d0 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -71,8 +71,8 @@ esac #################### # Scripted edit to /etc/network/interfaces when script is run -sed -i 's/auto eth0//' /etc/network/interfaces -sed -i 's/iface eth0 inet dhcp/#NetworkManager iface eth0 inet dhcp/' /etc/network/interfaces +sed -r -e 's/auto\s+eth[0-9]//' -i /etc/network/interfaces +sed -r -e 's/^(iface\s+eth[0-9]\s+inet\s+dhcp)\s*/#NetworkManager \1/' -i /etc/network/interfaces #################### -- cgit v1.2.3