diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-23 12:37:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-23 12:37:17 +0000 |
commit | bd191f09b6862cf4e5df66c3ead5c1041b88579f (patch) | |
tree | 141a523bd47b60584fb42fd3862a81090aecd337 | |
parent | 660b1d9fb7be8bdeb06a458753df4c29e8f46390 (diff) | |
download | master-187ad058-bd191f09b6862cf4e5df66c3ead5c1041b88579f.tar.gz master-187ad058-bd191f09b6862cf4e5df66c3ead5c1041b88579f.tar.bz2 master-187ad058-bd191f09b6862cf4e5df66c3ead5c1041b88579f.zip |
ltq-vdsl-app: mask out VDSL bits when ATM is selected, fixes compatibility issues with some DSLAMs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48457 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/network/config/ltq-vdsl-app/files/dsl_control | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control index 4ddc1d7880..fd8d0e32d6 100644 --- a/package/network/config/ltq-vdsl-app/files/dsl_control +++ b/package/network/config/ltq-vdsl-app/files/dsl_control @@ -133,6 +133,8 @@ start_service() { config_get firmware dsl firmware config_get xfer_mode dsl xfer_mode + eval "xtse=\"\${xtse_xdsl_$annex}\"" + [ -z "${xfer_mode}" ] && xfer_mode=ptm case "${xfer_mode}" in @@ -140,6 +142,9 @@ start_service() { LOAD=ltq_atm_vr9 UNLOAD=ltq_ptm_vr9 mode=1 + + # mask out VDSL bits when ATM is requested + xtse="${xtse%_*}_00" ;; *) LOAD=ltq_ptm_vr9 @@ -148,8 +153,6 @@ start_service() { ;; esac - eval "xtse=\"\${xtse_xdsl_$annex}\"" - [ -z "${firmware}" ] && firmware=/lib/firmware/vdsl.bin [ -f "${firmware}" ] || { echo failed to find $firmware |