X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Flantiq%2Fbase-files%2Flib%2Ffunctions%2Flantiq_dsl.sh;h=56b8652588faf21fcfe0f71dc0dd890b89bc03c2;hp=e817fdd6b419805dab11bd04ff88243323dff3dd;hb=9762c549149e1226a3affe43df71aa14379bd5d5;hpb=0100a8a68ef51ead7d1c570bcc33fb36493fbf00 diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh index e817fdd6b4..56b8652588 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -1,7 +1,11 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2012 OpenWrt.org +# Copyright (C) 2012-2014 OpenWrt.org -XDSL_CTRL=dsl_cpe_control +if [ "$( which vdsl_cpe_control )" ]; then + XDSL_CTRL=vdsl_cpe_control +else + XDSL_CTRL=dsl_cpe_control +fi # # Basic functions to send CLI commands to the vdsl_cpe_control daemon @@ -212,7 +216,7 @@ line_state() { *) s="unknown" ;; esac - if [ $action = "lucistat" ]; then + if [ "$action" = "lucistat" ]; then echo "dsl.line_state_num=$ls" echo "dsl.line_state_detail=\"$s\"" if [ "$ls" = "0x801" ]; then