aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-vdsl-app/files/10_atm.sh
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-08-03 09:44:21 +0200
committerMathias Kresin <dev@kresin.me>2017-08-06 09:22:03 +0200
commitc6504327d1d7a7be65dae781edc6283454601357 (patch)
tree083a356c2db233ae5e6f7dfa561a722cd1591fd1 /package/network/config/ltq-vdsl-app/files/10_atm.sh
parent2d6c7c2526b6cc522975e27c26cd1d42ebb7bcd1 (diff)
downloadupstream-c6504327d1d7a7be65dae781edc6283454601357.tar.gz
upstream-c6504327d1d7a7be65dae781edc6283454601357.tar.bz2
upstream-c6504327d1d7a7be65dae781edc6283454601357.zip
ltq-vdsl-app: use notification based ATM/PTM driver load
This patch removes the fixed atm/ptm driver loading and switches to notification based driver loading. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'package/network/config/ltq-vdsl-app/files/10_atm.sh')
-rwxr-xr-xpackage/network/config/ltq-vdsl-app/files/10_atm.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/network/config/ltq-vdsl-app/files/10_atm.sh b/package/network/config/ltq-vdsl-app/files/10_atm.sh
new file mode 100755
index 0000000000..abfb735923
--- /dev/null
+++ b/package/network/config/ltq-vdsl-app/files/10_atm.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+[ "$DSL_NOTIFICATION_TYPE" = "DSL_STATUS" ] && \
+[ "$DSL_TC_LAYER_STATUS" = "ATM" ] && \
+! grep -q "ltq_atm_vr9" /proc/modules || exit 0
+
+logger -p daemon.notice -t "dsl-notify" "Switching to TC-Layer ATM"
+
+if grep -q "ltq_ptm_vr9" /proc/modules ; then
+ logger -p daemon.notice -t "dsl-notify" "Loading ATM driver while EFM/PTM driver is loaded is not possible. Reboot is needed."
+ exit
+fi
+
+modprobe ltq_atm_vr9
+
+/etc/init.d/br2684ctl reload