ltq-vdsl-app: disconnect when service is stopped
authorJan Hoffmann <jan@3e8.eu>
Wed, 27 Apr 2022 17:40:50 +0000 (19:40 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 4 May 2022 00:38:04 +0000 (01:38 +0100)
commit1daaef31b35201a9c15a2084e25dac41b48c1867
tree439cfee4fc841ed36e95361688d2bab60e1923ad
parentdb4bf4b968c0da035d98e7771fc993af9d6f742b
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>
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