Use vif-route-qubes.

This commit is contained in:
Rafal Wojtczuk 2010-09-06 17:24:12 +02:00
parent 23e11f5f6f
commit 81a57ec32b

View File

@ -60,8 +60,8 @@ start()
gateway=$(/usr/bin/xenstore-read qubes_gateway)
secondary_dns=$(/usr/bin/xenstore-read qubes_secondary_dns)
if [ x$ip != x ]; then
/sbin/ifconfig eth0 $ip netmask $netmask up
/sbin/route add default gw $gateway
/sbin/ifconfig eth0 $ip netmask 255.255.255.255 up
/sbin/route add default dev eth0
echo "nameserver $gateway" > /etc/resolv.conf
echo "nameserver $secondary_dns" >> /etc/resolv.conf
fi