Add instance for sourcing /etc/network/interfaces.d/ only once
authorMichael Prokop <mika@grml.org>
Tue, 23 Jun 2020 09:58:20 +0000 (11:58 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 23 Jun 2020 10:22:09 +0000 (12:22 +0200)
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

index 939c0ea..0bc5ed2 100644 (file)
@@ -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