Skip to content

Commit

Permalink
/e/n/i: move sourcing of /etc/network/interfaces.d/ to begin of file
Browse files Browse the repository at this point in the history
netcardconfig doesn't properly handle this section and it disappears
when configuring network devices then.

Rewriting netcardconfig is on our agenda (see
grml/grml-network#11), until we get there
let's make sure the status quo works as good as possible.

Take over wording based on what ifupdown's postinst script uses.
  • Loading branch information
mika committed Jul 18, 2020
1 parent 8240696 commit b727a78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/9990-grml-networking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ fi

# config for loopback networking
cat > $IFFILE << EOF
# Initially generated on boot by initramfs
# Initially generated on boot by initramfs,
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
Expand Down Expand Up @@ -135,10 +139,6 @@ EOF
echo>> $IFFILE
done

echo '# Support overriding defaults:' >> $IFFILE
echo 'source /etc/network/interfaces.d/*' >> $IFFILE
echo>> $IFFILE

# dns bootoption
if [ -n "$DNSSERVERS" ]
then
Expand Down

0 comments on commit b727a78

Please sign in to comment.