diff --git a/src/lib/globals b/src/lib/globals index ca669b1..506dc1e 100644 --- a/src/lib/globals +++ b/src/lib/globals @@ -168,6 +168,14 @@ verify_profile() { /bin/bash -n "$PROFILE_DIR/$1" || exit 1 } +## Indicate that the network stack for the profile is up +network_ready() { + if ! is_yes "${WaitOnline:-no}" && ! is_yes "${NETWORK_READY:-no}"; then + do_debug systemd-notify --ready + NETWORK_READY=yes + fi +} + ## Wrapper around systemctl converting profile names to unit names # $1: systemctl command # $2...: profile names diff --git a/src/lib/network b/src/lib/network index cb79b77..6889b5b 100755 --- a/src/lib/network +++ b/src/lib/network @@ -4,14 +4,6 @@ . "$SUBR_DIR/interface" -## Indicate that the network stack for the profile is up -network_ready() { - if ! is_yes "${WaitOnline:-no}" && ! is_yes "${NETWORK_READY:-no}"; then - do_debug systemd-notify --ready - NETWORK_READY=yes - fi -} - ## Describe the status of the service for the profile # $1: status string, should be "online" when the profile gets connected network_status() {