diff options
| author | jandob | 2015-11-05 15:41:43 +0100 |
|---|---|---|
| committer | jandob | 2015-11-05 15:41:43 +0100 |
| commit | 34fcff83bfd7e0f73ad82f69b87faecbcad744fa (patch) | |
| tree | dc9d059bca7a8734859d5586c61725276f0af99c /builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions | |
| parent | add Makefile for systemd-preserve-process-marker (diff) | |
| parent | Document new simplified approaches. (diff) | |
| download | systemd-init-34fcff83bfd7e0f73ad82f69b87faecbcad744fa.tar.gz systemd-init-34fcff83bfd7e0f73ad82f69b87faecbcad744fa.tar.xz systemd-init-34fcff83bfd7e0f73ad82f69b87faecbcad744fa.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions')
| -rw-r--r-- | builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions b/builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions deleted file mode 100644 index 89ca5a20..00000000 --- a/builder/dnbd3-qcow2-rootfs/debugging_tools/network.functions +++ /dev/null @@ -1,23 +0,0 @@ -wait_for_iface() { - local DEVICE=$1 - local TIMEOUT=10 - echo -n "Waiting for interface $DEVICE: " - # Some systems don't have operstate. Seems to be hardware dependent - [ ! -e "/sys/class/net/${DEVICE}/operstate" ] && usleep 10000 - if [ -e "/sys/class/net/${DEVICE}/operstate" ]; then - while true; do - # check linkstate - [ "x$(cat "/sys/class/net/${DEVICE}/operstate")" == "xup" ] && break - TIMEOUT=$(( $TIMEOUT - 1 )) # don't wait forever, the pcnet iface of vmware will never be "up" although it's working - [ "$TIMEOUT" -le 0 ] && break - # else - echo -n "." - usleep 500000 - done - else - # we really don't have a operstate .. then just wait a sec and hope for the best. - sleep 1 - fi - echo ".$(cat "/sys/class/net/${DEVICE}/operstate" 2>/dev/null)" -} -true |
