Sha256: 1a9e76e70555ab8261f30d60aad4ef43117e0149afb0095cbb5a1367ce15f759
Contents?: true
Size: 398 Bytes
Versions: 31
Compression:
Stored size: 398 Bytes
Contents
#!/bin/sh n=1 for x in `cat /proc/cmdline` do case $x in foreman.ip=*) server="${x//foreman.ip=}" ;; foreman.server=*) server="${x//foreman.server=}" ;; esac done echo "Testing ping to $server to see if network is up..." until ping -w 1 -c 1 "$server" &>/dev/null ;do sleep 1 n=$(( n+1 )) [ $n -eq 180 ] && break done
Version data entries
31 entries across 31 versions & 1 rubygems