diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-30 23:37:54 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-30 23:37:54 +0100 |
commit | 604fa0426202a82cae50e8a99cb008785cad1f0b (patch) | |
tree | b07e86930cfa37738333cdcd7db3be5769e090f4 /install-itzks-workstation | |
parent | 785d658d8d6d2f948ed0c6c1fe24d97bb60fca7c (diff) | |
download | itzks-install-script-604fa0426202a82cae50e8a99cb008785cad1f0b.tar.gz itzks-install-script-604fa0426202a82cae50e8a99cb008785cad1f0b.tar.bz2 itzks-install-script-604fa0426202a82cae50e8a99cb008785cad1f0b.zip |
/etc/network/interfaces: Make handing over NICs to NetworkManager idempotent, also tackle eth1-9 like eth0.
Diffstat (limited to 'install-itzks-workstation')
-rw-r--r-- | install-itzks-workstation | 4 |
1 files 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 #################### |