 a11897a1d0
			
		
	
	
		a11897a1d0
		
			
		
	
	
	
	
		
			
			Apparently unmanaged devices are loaded only from main
NetworkManager.conf. Exactly the same line pasted (not typed!) to main
NetworkManager.conf works, but in
/etc/NetworkManager/conf.d/30-qubes.conf it doesn't.
BTW There was a typo in option name ("unmanaged_devices" instead of
"unmanaged-devices", but it wasn't the cause).
This reverts commit 6c4831339c.
QubesOS/qubes-issues#1176
		
	
			
		
			
				
	
	
		
			20 rader
		
	
	
		
			758 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 rader
		
	
	
		
			758 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| NM_CONFIG_DIR=/etc/NetworkManager/system-connections
 | |
| if [ -d $NM_CONFIG_DIR -a ! -h $NM_CONFIG_DIR ]; then
 | |
|     mkdir -p /rw/config/NM-system-connections
 | |
|     mv $NM_CONFIG_DIR/* /rw/config/NM-system-connections/ 2> /dev/null || true
 | |
|     rmdir $NM_CONFIG_DIR
 | |
|     ln -s /rw/config/NM-system-connections $NM_CONFIG_DIR
 | |
| fi
 | |
| 
 | |
| # Do not manage xen-provided network devices
 | |
| 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
 | |
| 
 | |
| exit 0
 |