vm: Do not setup IP second time
It is assigned by udev script
This commit is contained in:
parent
d16b6f24f9
commit
fdf636f50e
@ -26,17 +26,6 @@ start()
|
||||
hostname $name
|
||||
fi
|
||||
|
||||
ip=$(/usr/bin/xenstore-read qubes_ip)
|
||||
netmask=$(/usr/bin/xenstore-read qubes_netmask)
|
||||
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 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
|
||||
|
||||
if [ -e /dev/xvdb ] ; then
|
||||
mount /rw
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user