From 2f7a8c9f67d2039d37f481c07061ddc4596b34de Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 23 Jun 2020 11:58:20 +0200 Subject: [PATCH] Add instance for sourcing /etc/network/interfaces.d/ only once We don't want one instance of `source /etc/network/interfaces.d/*` per interace, but instead once per file. Closes: https://github.com/grml/live-boot-grml/issues/11 --- components/9990-grml-networking.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/9990-grml-networking.sh b/components/9990-grml-networking.sh index 939c0ea..0bc5ed2 100644 --- a/components/9990-grml-networking.sh +++ b/components/9990-grml-networking.sh @@ -133,12 +133,12 @@ EOF unset IPV4DNS IPV4DNSLIST echo>> $IFFILE - echo '# Support overriding defaults:' >> $IFFILE - echo 'source /etc/network/interfaces.d/*' >> $IFFILE - - echo>> $IFFILE done +echo '# Support overriding defaults:' >> $IFFILE +echo 'source /etc/network/interfaces.d/*' >> $IFFILE +echo>> $IFFILE + # dns bootoption if [ -n "$DNSSERVERS" ] then -- 2.1.4