deployment.sh: always set internal network in pro systems, even when using dhcp

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 77932b819a
commit afdbb30819

@ -961,6 +961,19 @@ iface lo inet loopback
allow-hotplug $EXTERNAL_DEV
iface $EXTERNAL_DEV inet dhcp
EOF
# make sure internal network is available even with external
# device using DHCP
if "$PRO_EDITION" ; then
cat >> $TARGET/etc/network/interfaces << EOF
auto $INTERNAL_DEV
iface $INTERNAL_DEV inet static
address $INTERNAL_IP
netmask $INTERNAL_NETMASK
dns-nameservers $(awk '/^nameserver/ {print $2}' /etc/resolv.conf | xargs echo -n)
EOF
fi
else
# assume host system has a valid configuration
if "$PRO_EDITION" && "$BONDING" ; then

Loading…
Cancel
Save