mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 05:54:26 -04:00 
			
		
		
		
	base-files: Really check path in get_mac_binary
Currently, path argument is only checked for being not empty. This changes behavior to actually check whether path exists. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
		
							parent
							
								
									b683f1c36d
								
							
						
					
					
						commit
						8592602d0a
					
				| @ -4,7 +4,7 @@ get_mac_binary() { | ||||
| 	local path="$1" | ||||
| 	local offset="$2" | ||||
| 
 | ||||
| 	if [ -z "$path" ]; then | ||||
| 	if [ -e "$path" ]; then | ||||
| 		echo "get_mac_binary: file $path not found!" >&2 | ||||
| 		return | ||||
| 	fi | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user