This allows to obtain detailed diagnostic information about the DSL connection from the modem. The script is copied from the corresponding packages for VDSL modems. Signed-off-by: Jan Hoffmann <jan@3e8.eu> Link: https://patchwork.ozlabs.org/project/openwrt/patch/20241019174041.1281093-4-jan@3e8.eu/ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
18 lines
280 B
Bash
Executable file
18 lines
280 B
Bash
Executable file
#!/bin/sh
|
|
|
|
pipe_no=0
|
|
|
|
# use specified pipe no
|
|
case "$1" in
|
|
0|1|2)
|
|
pipe_no=$1; shift; ;;
|
|
esac
|
|
|
|
|
|
#echo "Call dsl_pipe with $*"
|
|
lock /var/lock/dsl_pipe
|
|
echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd
|
|
result=$(cat /tmp/pipe/dsl_cpe${pipe_no}_ack)
|
|
lock -u /var/lock/dsl_pipe
|
|
|
|
echo "$result"
|