network: fix 'qubes-uplink-eth0' NetworkManager connection (#1280)

According to the specification[1], the setting name is 'addresses', not
'address'.  The later apparently worked on some NetworkManager versions,
but for example not on the one in Debian wheezy. Also fix value
format (IP;netmask;gateway).

[1] htts://developer.gnome.org/NetworkManager/unstable/ref-settings.html

Fixes QubesOS/qubes-issues#1280
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-06 15:29:30 +02:00
parent 6c4831339c
commit 580d21acdc
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -57,9 +57,9 @@ __EOF__
echo "dns=$gateway;$secondary_dns" >> $nm_config echo "dns=$gateway;$secondary_dns" >> $nm_config
fi fi
if [ "x$disablegw" != "x1" ]; then if [ "x$disablegw" != "x1" ]; then
echo "address1=$ip/32,$gateway" >> $nm_config echo "addresses1=$ip;32;$gateway" >> $nm_config
else else
echo "address1=$ip/32" >> $nm_config echo "addresses1=$ip;32" >> $nm_config
fi fi
chmod 600 $nm_config chmod 600 $nm_config
fi fi