configuring etc/network/interfaces from postinst instead of installing a static file
This commit is contained in:
parent
a7588ab6c7
commit
d87f7c1720
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
source-directory /etc/network/interfaces.d
|
|
Loading…
Reference in New Issue