mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
Merge remote-tracking branch 'ms/cleanup' into next
This commit is contained in:
@@ -36,10 +36,6 @@ if [ ! $HOLDOFF ]; then
|
||||
HOLDOFF=30
|
||||
fi
|
||||
|
||||
if [ "$RECONNECTION" = "dialondemand" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
msg_log () {
|
||||
logger -t $(basename $0)[$$] $*
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user