ltq-vdsl-app: disconnect when service is stopped
authorJan Hoffmann <jan@3e8.eu>
Wed, 27 Apr 2022 17:40:50 +0000 (19:40 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jun 2022 19:36:58 +0000 (21:36 +0200)
commit9c0f94e9551dd06455e93ac5e41b61b5cd1d2459
tree74a23408968c2641d17d49e88478c8e9329c5402
parent8f4b5fdd5f1a2a85f3b16da69a03edf1c3470369
ltq-vdsl-app: disconnect when service is stopped

Stop the connection when the control daemon is terminated. The code is
a modified version of the termination routine in version 4.23.1 of the
daemon (which doesn't support VR9 modems anymore).

This could also be implemented by calling the acos and acs commands via
dsl_cpe_pipe.sh in the init script. However, doing it in the daemon
itself has the advantage of also working if it is terminated in another
way (for example during sysupgrade).

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
(cherry picked from commit 1daaef31b35201a9c15a2084e25dac41b48c1867)
package/network/config/ltq-vdsl-app/patches/200-autoboot.patch
package/network/config/ltq-vdsl-app/patches/201-sigterm.patch
package/network/config/ltq-vdsl-app/patches/300-ubus.patch