diff options
author | Simon Rettberg | 2023-07-27 12:32:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-07-27 12:32:53 +0200 |
commit | 12702671e9426d4eb05c4a08a9d9ebd135425929 (patch) | |
tree | 0d5abe94c6c04cd8d55a502f0934ed942ae1e1fa /core/modules/slx-network-configs-targets | |
parent | [qemu] java: Make pci passthrough generic, not just for nvidia (diff) | |
download | mltk-12702671e9426d4eb05c4a08a9d9ebd135425929.tar.gz mltk-12702671e9426d4eb05c4a08a9d9ebd135425929.tar.xz mltk-12702671e9426d4eb05c4a08a9d9ebd135425929.zip |
Add more log output to a couple of systemd startup scripts
Diffstat (limited to 'core/modules/slx-network-configs-targets')
-rwxr-xr-x | core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_online | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_online b/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_online index aaee9c32..86aa3da2 100755 --- a/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_online +++ b/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_online @@ -8,6 +8,7 @@ while ! grep -q ^nameserver /etc/resolv.conf && [ "$w" -lt 10 ]; do let w++ sleep 1 done +ns=$w # We don't consider a missing nameserver fatal, but a missing gateway, if no proxy is set . /etc/profile @@ -17,5 +18,10 @@ while [ -z "$http_proxy" ] && [ -z "$ALL_PROXY" ] && ! ip route show | grep -q ^ sleep 1 . /etc/profile done +gw=$(( w - ns )) + +if [ "$ns" -gt 2 ] || [ "$gw" -gt 2 ]; then + echo "Waited $ns seconds for DNS, $gw seconds for default gateway/proxy" +fi exit 0 |