diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 11:03:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 11:03:26 +0000 |
commit | afcb0ebabd0f29e1aaa08bd723abd7af9427bc5c (patch) | |
tree | 7331ea2a78cec657b06abac57aea4471058f5441 | |
parent | 4d7902b3a28051a5b2b612c2218236a553194772 (diff) | |
download | master-187ad058-afcb0ebabd0f29e1aaa08bd723abd7af9427bc5c.tar.gz master-187ad058-afcb0ebabd0f29e1aaa08bd723abd7af9427bc5c.tar.bz2 master-187ad058-afcb0ebabd0f29e1aaa08bd723abd7af9427bc5c.zip |
ltq-vdsl-app: make the dsl_control application stop cleanly
I am not calling dsl_cmd because I want to ignore the lock, quit
should also be send when someone else is accessing it. I saw that some
other call was stuck here and all following calls were stuck in the
dsl_cmd lock.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48943 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/network/config/ltq-vdsl-app/files/dsl_control | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control index c4c3c0d601..1d8a902f69 100644 --- a/package/network/config/ltq-vdsl-app/files/dsl_control +++ b/package/network/config/ltq-vdsl-app/files/dsl_control @@ -220,6 +220,8 @@ start_service() { } stop_service() { + # do not use dsl_cmd to not block when this is locked up by some other proess + echo quit > /tmp/pipe/dsl_cpe0_cmd DSL_NOTIFICATION_TYPE="DSL_INTERFACE_STATUS" \ DSL_INTERFACE_STATUS="DOWN" \ /sbin/dsl_notify.sh |