From: John Crispin Date: Thu, 10 Apr 2014 08:14:33 +0000 (+0000) Subject: lantiq: move the dsl-modem config to network.@dsl-modem[-1] X-Git-Tag: reboot~7486 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eebc673f1e325a0e716087975f2daf552e9ab689;p=openwrt%2Fstaging%2Fnoltari.git lantiq: move the dsl-modem config to network.@dsl-modem[-1] make sure uci_defaults generates a proper uci config for the v/adsl modem Signed-off-by: John Crispin SVN-Revision: 40439 --- diff --git a/package/network/config/ltq-adsl-app/files/dsl_control b/package/network/config/ltq-adsl-app/files/dsl_control index d48f3f6266..e48b72b059 100644 --- a/package/network/config/ltq-adsl-app/files/dsl_control +++ b/package/network/config/ltq-adsl-app/files/dsl_control @@ -32,8 +32,8 @@ start() { local firmware local xtu config_load network - config_get annex wan annex - config_get firmware wan firmware + config_get annex dsl annex + config_get firmware dsl firmware eval "xtu=\"\${annex_$annex}\"" diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control index 81db4d2641..c6be228494 100644 --- a/package/network/config/ltq-vdsl-app/files/dsl_control +++ b/package/network/config/ltq-vdsl-app/files/dsl_control @@ -134,10 +134,10 @@ start() { local mode config_load network - config_get tone wan tone - config_get annex wan annex - config_get firmware wan firmware - config_get xfer_mode wan xfer_mode + config_get tone dsl tone + config_get annex dsl annex + config_get firmware dsl firmware + config_get xfer_mode dsl xfer_mode [ -z "${xfer_mode}" ] && xfer_mode=ptm diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network index 428089ceb7..ac06e5f278 100644 --- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network +++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network @@ -28,6 +28,30 @@ set network.wan6.proto='dhcpv6' EOF } +set_adsl_modem() { + local annex=$1 + local firmware=$2 + uci batch <