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
(cherry picked from commit 580d21acdc
)
This commit is contained in:
parent
b51aceb949
commit
4ac04e4c2b
|
@ -54,9 +54,9 @@ __EOF__
|
|||
echo "dns=$gateway;$secondary_dns" >> $nm_config
|
||||
fi
|
||||
if [ "x$disablegw" != "x1" ]; then
|
||||
echo "address1=$ip/32,$gateway" >> $nm_config
|
||||
echo "addresses1=$ip;32;$gateway" >> $nm_config
|
||||
else
|
||||
echo "address1=$ip/32" >> $nm_config
|
||||
echo "addresses1=$ip;32" >> $nm_config
|
||||
fi
|
||||
chmod 600 $nm_config
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user