initscripts: Fix reading PIDs

An incorrect variable has been used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-23 14:31:49 +01:00
parent 6e47a143c9
commit 5900a95059

View File

@@ -522,11 +522,11 @@ loadproc()
(
${cmd[@]} &>/dev/null
) &
pid="$!"
pid="$$"
evaluate_retval
else
${cmd[@]}
pid="$!"
pid="$$"
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
fi