Merge remote-tracking branch 'ms/cleanup' into next

This commit is contained in:
Michael Tremer
2024-07-24 16:32:28 +00:00
14 changed files with 722 additions and 650 deletions

View File

@@ -36,10 +36,6 @@ if [ ! $HOLDOFF ]; then
HOLDOFF=30
fi
if [ "$RECONNECTION" = "dialondemand" ]; then
exit 0
fi
msg_log () {
logger -t $(basename $0)[$$] $*
}

View File

@@ -512,7 +512,7 @@ loadproc()
esac
fi
local cmd="${@}"
local cmd=( "${@}" )
if [ -n "${nicelevel}" ]; then
cmd="nice -n "${nicelevel}" ${cmd}"
@@ -520,13 +520,12 @@ loadproc()
if [ -n "${background}" ]; then
(
${cmd} &>/dev/null
${cmd[@]} &>/dev/null
) &
pid="$!"
evaluate_retval
else
${cmd}
pid="$!"
${cmd[@]}
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
fi