code cleanup
This commit is contained in:
		| @@ -9,8 +9,8 @@ wait_for_iface() { | |||||||
| 	local iface="$1" timer='0' timeout='6' | 	local iface="$1" timer='0' timeout='6' | ||||||
|  |  | ||||||
| 	until [[ "ip link show $iface up" ]]; do | 	until [[ "ip link show $iface up" ]]; do | ||||||
| 		[[ "$timer" -ge "$timeout" ]] && { return 1; } | 		(( timer >= timeout )) && { return 1; } | ||||||
| 		timer=$[timer+1] | 		(( timer++ )) | ||||||
| 	done | 	done | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user