diff options
author | Mathias Kresin <dev@kresin.me> | 2016-10-11 09:12:30 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-10-11 09:31:57 +0200 |
commit | 0547b3ca64f8d7dfdde65c638d1ff3d2a57b1abb (patch) | |
tree | e116dbcd0202ff5010df173e5bb69019e873cbd7 | |
parent | e6b28802761b8e60b18baa6da7a10c94f8209c3e (diff) | |
download | upstream-0547b3ca64f8d7dfdde65c638d1ff3d2a57b1abb.tar.gz upstream-0547b3ca64f8d7dfdde65c638d1ff3d2a57b1abb.tar.bz2 upstream-0547b3ca64f8d7dfdde65c638d1ff3d2a57b1abb.zip |
lantiq: fix lantiq-dsl output spam
In case the adsl/vdsl service is disabled intentional, the output is
cluttered with the following message multiple times if the status of
the dsl line is queried:
killall: vdsl_cpe_control: no process killed
If the dsl line status is queried by LuCI, the logfile is spammed with
the message.
Fix the issue by using killall in quite mode. In quite mode killall
still returns a non-zero value if the to be killed process can not be
found so that existing logic based on the return value still works.
Signed-off-by: Mathias Kresin <dev@kresin.me>
-rwxr-xr-x | target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh index 41993f77d3..feaafe61e9 100755 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -11,7 +11,7 @@ fi # Basic functions to send CLI commands to the vdsl_cpe_control daemon # dsl_cmd() { - killall -0 ${XDSL_CTRL} && ( + killall -q -0 ${XDSL_CTRL} && ( lock /var/lock/dsl_pipe echo "$@" > /tmp/pipe/dsl_cpe0_cmd cat /tmp/pipe/dsl_cpe0_ack |