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-9.1.1 extra/wait_for_network.sh
foreman_discovery-9.1.0 extra/wait_for_network.sh
foreman_discovery-9.0.0 extra/wait_for_network.sh
foreman_discovery-8.0.1 extra/wait_for_network.sh
foreman_discovery-8.0.0 extra/wait_for_network.sh
foreman_discovery-7.0.1 extra/wait_for_network.sh
foreman_discovery-7.0.0 extra/wait_for_network.sh
foreman_discovery-6.0.0 extra/wait_for_network.sh
foreman_discovery-5.0.2 extra/wait_for_network.sh
foreman_discovery-5.0.1 extra/wait_for_network.sh
foreman_discovery-5.0.0 extra/wait_for_network.sh
foreman_discovery-4.1.2 extra/wait_for_network.sh
foreman_discovery-4.1.1 extra/wait_for_network.sh
foreman_discovery-4.1.0 extra/wait_for_network.sh
foreman_discovery-4.0.0 extra/wait_for_network.sh
foreman_discovery-2.0.2 extra/wait_for_network.sh
foreman_discovery-2.0.1 extra/wait_for_network.sh
foreman_discovery-3.0.0 extra/wait_for_network.sh
foreman_discovery-2.0.0 extra/wait_for_network.sh
foreman_discovery-2.0.0.rc2 extra/wait_for_network.sh