From eebc673f1e325a0e716087975f2daf552e9ab689 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 10 Apr 2014 08:14:33 +0000 Subject: [PATCH] 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 --- .../config/ltq-adsl-app/files/dsl_control | 4 +-- .../config/ltq-vdsl-app/files/dsl_control | 8 ++--- .../base-files/etc/uci-defaults/02_network | 32 +++++++++++++++++++ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/package/network/config/ltq-adsl-app/files/dsl_control b/package/network/config/ltq-adsl-app/files/dsl_control index d48f3f62667b..e48b72b05943 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 81db4d2641bc..c6be2284941d 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 428089ceb716..ac06e5f27826 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 <