void-packages/srcpkgs/GCP-Guest-Environment/files/GCP-ip-forwarding/run

11 lines
186 B
Bash

#!/bin/sh
exec 2>&1
sv check GCP-Guest-Initialization >/dev/null || exit 1
while ! ping -c1 metadata.google.internal >/dev/null ; do
sleep 5
done
exec google_ip_forwarding_daemon