aboutsummaryrefslogtreecommitdiffstats
path: root/docker/wait_for_net.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/wait_for_net.sh')
-rwxr-xr-xdocker/wait_for_net.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/docker/wait_for_net.sh b/docker/wait_for_net.sh
deleted file mode 100755
index 354e76a..0000000
--- a/docker/wait_for_net.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-### this script is used as entrypoint of the docker container to wait for network to be up ###
-
-IFACE="veth0 eth0"
-
-function wait_net() {
- for i in $IFACE; do
- [[ "$(cat /sys/class/net/$i/operstate 2>/dev/null)" == "up" ]] && return 1
- done
- return 0
-}
-
-while wait_net; do
- sleep 1
-done
-
-[[ $# > 0 ]] && exec "$@"
-exec /bin/bash -l