Merge "Fix /etc/network/interfaces file contents"
This commit is contained in:
commit
bbf69a90f3
@ -25,6 +25,10 @@ rm -f /etc/conf.d/net*
|
||||
if [ -f "/etc/network/interfaces" ]; then
|
||||
printf "auto lo\niface lo inet loopback\n\n" > /etc/network/interfaces
|
||||
if [ -d "/etc/network/interfaces.d/" ]; then
|
||||
if [ "$DISTRO_NAME" == "ubuntu" ] && [ "$DIB_RELEASE" == "trusty" ]; then
|
||||
printf "source-directory interfaces.d\n\n" >> /etc/network/interfaces
|
||||
else
|
||||
printf "source /etc/network/interfaces.d/*\n\n" >> /etc/network/interfaces
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -28,6 +28,10 @@ rm -f /etc/conf.d/net*
|
||||
if [ -f "/etc/network/interfaces" ]; then
|
||||
printf "auto lo\niface lo inet loopback\n\n" > /etc/network/interfaces
|
||||
if [ -d "/etc/network/interfaces.d/" ]; then
|
||||
if [ "$DISTRO_NAME" == "ubuntu" ] && [ "$DIB_RELEASE" == "trusty" ]; then
|
||||
printf "source-directory interfaces.d\n\n" >> /etc/network/interfaces
|
||||
else
|
||||
printf "source /etc/network/interfaces.d/*\n\n" >> /etc/network/interfaces
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user