Merge remote-tracking branch 'qubesos/pr/45'

* qubesos/pr/45:
  network: Properly handle comments in NetworkManager.conf (#2584)
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-01 11:58:13 +02:00
commit a6031ca33c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -13,7 +13,7 @@ unmanaged_devices=mac:fe:ff:ff:ff:ff:ff
#for mac in `xenstore-ls device/vif | grep mac | cut -d= -f2 | tr -d '" '`; do
# unmanaged_devices="$unmanaged_devices;mac:$mac"
#done
sed -i -e "s/^unmanaged-devices=.*/unmanaged-devices=$unmanaged_devices/" /etc/NetworkManager/NetworkManager.conf
sed -i -e "s/^plugins=.*/plugins=keyfile/" /etc/NetworkManager/NetworkManager.conf
sed -r -i -e "s/^#?unmanaged-devices=.*/unmanaged-devices=$unmanaged_devices/" /etc/NetworkManager/NetworkManager.conf
sed -r -i -e "s/^#?plugins=.*/plugins=keyfile/" /etc/NetworkManager/NetworkManager.conf
exit 0