From c6504327d1d7a7be65dae781edc6283454601357 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Thu, 3 Aug 2017 09:44:21 +0200 Subject: 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 --- package/network/config/ltq-vdsl-app/files/10_ptm.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 package/network/config/ltq-vdsl-app/files/10_ptm.sh (limited to 'package/network/config/ltq-vdsl-app/files/10_ptm.sh') diff --git a/package/network/config/ltq-vdsl-app/files/10_ptm.sh b/package/network/config/ltq-vdsl-app/files/10_ptm.sh new file mode 100755 index 0000000000..1c62617bba --- /dev/null +++ b/package/network/config/ltq-vdsl-app/files/10_ptm.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +[ "$DSL_NOTIFICATION_TYPE" = "DSL_STATUS" ] && \ +[ "$DSL_TC_LAYER_STATUS" = "EFM" ] && \ +! grep -q "ltq_ptm_vr9" /proc/modules || exit 0 + +logger -p daemon.notice -t "dsl-notify" "Switching to TC-Layer EFM/PTM" + +if grep -q "ltq_atm_vr9" /proc/modules ; then + logger -p daemon.notice -t "dsl-notify" "Loading EFM/PTM driver while ATM driver is loaded is not possible. Reboot is needed." + exit +fi + +modprobe ltq_ptm_vr9 -- cgit v1.2.3