qoriq: 02_network fix sweth globbing logic
This prevents invalid configuration of non-existent sweth devices. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
		 Thibaut VARÈNE
					Thibaut VARÈNE
				
			
				
					committed by
					
						 Stijn Tintel
						Stijn Tintel
					
				
			
			
				
	
			
			
			 Stijn Tintel
						Stijn Tintel
					
				
			
						parent
						
							19231cf838
						
					
				
				
					commit
					5fdbae463c
				
			| @@ -21,7 +21,7 @@ watchguard,firebox-m300) | |||||||
|  |  | ||||||
| 	sweth_mac_offset=0x186d | 	sweth_mac_offset=0x186d | ||||||
|  |  | ||||||
| 	for sweth in /sys/class/net/sweth*; do | 	for sweth in $(find /sys/class/net/ -name 'sweth*' -print); do | ||||||
| 		device="$(basename "$sweth")" | 		device="$(basename "$sweth")" | ||||||
| 		mac="$(mtd_get_mac_text wg_cfg0 "$sweth_mac_offset")" | 		mac="$(mtd_get_mac_text wg_cfg0 "$sweth_mac_offset")" | ||||||
| 		switchports="$switchports $device" | 		switchports="$switchports $device" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user