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 | a5a8ffb0b65f908fc5e9c795d7e688ab1d3aa0db (patch) | |
tree | 3f0dbc0551cc313f76ce3725b91244879e299c49 /package | |
parent | 06b630047fda49b97e2533a466d65f32be906b4c (diff) | |
download | mtk-20170518-a5a8ffb0b65f908fc5e9c795d7e688ab1d3aa0db.zip mtk-20170518-a5a8ffb0b65f908fc5e9c795d7e688ab1d3aa0db.tar.gz mtk-20170518-a5a8ffb0b65f908fc5e9c795d7e688ab1d3aa0db.tar.bz2 |
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>
SVN-Revision: 48943
Diffstat (limited to 'package')
-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 c4c3c0d..1d8a902 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 |