diff options
-rw-r--r-- | meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh index 29fbbdeda5..6a0c8b0e61 100644 --- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh +++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh @@ -25,7 +25,9 @@ sleep $((60 * wait_min)) # If the DHCP configuration process is running, wait for it to finish if pid="$(cat /run/gbmc-br-dhcp.pid 2>/dev/null)"; then echo "DHCP still running ($pid), waiting" >&2 - wait "$pid" + while [[ -e /proc/$pid ]]; do + sleep 1 + done fi echo "Stopping DHCP processing" >&2 systemctl stop --no-block gbmc-br-dhcp |