Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
echo "networkd launched as PID ${networkd_PID}"
+ # Wait until networkd is initialized
+ # XXX Calling sleep(8) is very racy and should be replaced by something that
+ # waits until networkd has connected to dbus
sleep 1
}
fi
}
+# Collect some status information
+trap dump_status EXIT
+
main() {
local test="${1}"
shift
# Terminate networkd
terminate_networkd
- # Collect some status information
- dump_status
-
# Run cleanup script
if ! run_script "${test}/cleanup.sh"; then
return 1