network: set uplink configuration based on MAC (NetworkManager)

This commit is contained in:
Marek Marczykowski-Górecki 2014-12-22 00:03:37 +01:00
parent 0fe40b2627
commit 4ed2abb030

View File

@ -35,6 +35,9 @@ if [ x$ip != x ]; then
cat > /etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE <<__EOF__
[802-3-ethernet]
duplex=full
[ethernet]
mac-address=`ip l show dev $INTERFACE |grep link|awk '{print $2}'`
[connection]
id=VM uplink $INTERFACE