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> SVN-Revision: 48457
This commit is contained in:
parent
6dc60d54fc
commit
fe2007bb07
1 changed files with 5 additions and 2 deletions
|
@ -133,6 +133,8 @@ start_service() {
|
||||||
config_get firmware dsl firmware
|
config_get firmware dsl firmware
|
||||||
config_get xfer_mode dsl xfer_mode
|
config_get xfer_mode dsl xfer_mode
|
||||||
|
|
||||||
|
eval "xtse=\"\${xtse_xdsl_$annex}\""
|
||||||
|
|
||||||
[ -z "${xfer_mode}" ] && xfer_mode=ptm
|
[ -z "${xfer_mode}" ] && xfer_mode=ptm
|
||||||
|
|
||||||
case "${xfer_mode}" in
|
case "${xfer_mode}" in
|
||||||
|
@ -140,6 +142,9 @@ start_service() {
|
||||||
LOAD=ltq_atm_vr9
|
LOAD=ltq_atm_vr9
|
||||||
UNLOAD=ltq_ptm_vr9
|
UNLOAD=ltq_ptm_vr9
|
||||||
mode=1
|
mode=1
|
||||||
|
|
||||||
|
# mask out VDSL bits when ATM is requested
|
||||||
|
xtse="${xtse%_*}_00"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
LOAD=ltq_ptm_vr9
|
LOAD=ltq_ptm_vr9
|
||||||
|
@ -148,8 +153,6 @@ start_service() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
eval "xtse=\"\${xtse_xdsl_$annex}\""
|
|
||||||
|
|
||||||
[ -z "${firmware}" ] && firmware=/lib/firmware/vdsl.bin
|
[ -z "${firmware}" ] && firmware=/lib/firmware/vdsl.bin
|
||||||
[ -f "${firmware}" ] || {
|
[ -f "${firmware}" ] || {
|
||||||
echo failed to find $firmware
|
echo failed to find $firmware
|
||||||
|
|
Loading…
Reference in a new issue