configuring etc/network/interfaces from postinst instead of installing a static file

This commit is contained in:
toby 2018-09-25 23:24:42 +02:00
parent a7588ab6c7
commit d87f7c1720
3 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,5 @@ files/qemu-ifdown etc/libvirt/hooks
files/qemu-ifup-public etc/libvirt/hooks files/qemu-ifup-public etc/libvirt/hooks
files/qemu-ifup etc/libvirt/hooks files/qemu-ifup etc/libvirt/hooks
files/firewall etc/init.d files/firewall etc/init.d
files/interfaces etc/network
files/frr.conf.wit etc/frr files/frr.conf.wit etc/frr
files/ipsec.conf.wit etc files/ipsec.conf.wit etc

View File

@ -52,6 +52,10 @@ case "$1" in
# set network interface configurations # set network interface configurations
cat <<-EOF >/etc/network/interfaces
source-directory /etc/network/interfaces.d
EOF
cat <<-EOF >/etc/network/interfaces.d/lo cat <<-EOF >/etc/network/interfaces.d/lo
auto lo auto lo
iface lo inet loopback iface lo inet loopback

View File

@ -1 +0,0 @@
source-directory /etc/network/interfaces.d