Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/lib/globals
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions src/lib/network
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down