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

Version Path
foreman_discovery-2.0.0.rc1 extra/wait_for_network.sh
foreman_discovery-1.4.1 extra/wait_for_network.sh
foreman_discovery-1.4.0 extra/wait_for_network.sh
foreman_discovery-1.4.0.rc4 extra/wait_for_network.sh
foreman_discovery-1.4.0.rc3 extra/wait_for_network.sh
foreman_discovery-1.4.0.rc2 extra/wait_for_network.sh
foreman_discovery-1.4.0.rc1 extra/wait_for_network.sh
foreman_discovery-1.3.0 extra/wait_for_network.sh
foreman_discovery-1.3.0.rc3 extra/wait_for_network.sh
foreman_discovery-1.3.0.rc2 extra/wait_for_network.sh
foreman_discovery-1.3.0.rc1 extra/wait_for_network.sh