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 dbd19698b3
commit b3429b596d

View File

@ -29,6 +29,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