[OpenWrt-Devel] [PATCH] lantiq: add dsl line_state mapping

Martin Schiller ms at dev.tdt.de
Thu Jun 18 01:03:28 EDT 2020


On 2020-06-17 12:21, Florian Eckert wrote:
> Hi Adrian,
> 
>>> The line_state of the DSL connection is described in the system via a
>>> hexadecimal variable. With this change the hexadecimal is mapped to a
>>> decimal value. With this change it is now possible to store this 
>>> value in a
>>> database, so that it can be easily evaluated.
>> 
>> Interesting file this lantiq_dsl.sh ...
>> 
> 
> That´s probably right!
> 
>> I'm wondering whether all of this really need to be in this file, or
>> whether stuff can be moved to the package actually dealing with it?
>> This might also make it easier to change it when necessary.
>> 
> 
> This file is sourced twice:
> - dsl_control of package ltq-adsl-app [1]
> - dsl_control of package ltq-vdsl-app [2]
> 
> If we take this from the target folder then we have to make our own
> packet ltq-dsl-common for example.
> And the packages ltq-adsl-app and ltq-vdsl-app could depend on this.
> 
> When we create a new package, we may also want to move other files
> from the target directory to the new package?
> 
> - lantiq.sh [3] This is sourced in 02_network files on the lantiq 
> targets.
> - led_dsl.sh [4]
> - pppoa.sh [5]
> - uci-defaults [6]
> - dsl_notify.sh [7]
> 
> These are candidates that could also moved to the new package

That's what I've already done in my working tree for VRX518 support on
FB7530, to get this scripts also available on other targets than lantiq:

https://github.com/3headeddevs/openwrt/commit/9f45c750f91eea230dc638c0936fb6e761214abb

> 
> Best regards
> 
> Florian
> 
> [1]
> https://github.com/openwrt/openwrt/blob/master/package/network/config/ltq-adsl-app/files/dsl_control#L11
> [2]
> https://github.com/openwrt/openwrt/blob/master/package/network/config/ltq-vdsl-app/files/dsl_control#L11
> [3]
> https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/base-files/lib/functions/lantiq.sh
> [4]
> https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/base-files/etc/hotplug.d/dsl/led_dsl.sh
> [5]
> https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/base-files/etc/hotplug.d/dsl/pppoa.sh
> [6]
> https://github.com/openwrt/openwrt/tree/master/target/linux/lantiq/base-files/etc/uci-defaults
> [7]
> https://github.com/openwrt/openwrt/blob/master/target/linux/lantiq/base-files/sbin/dsl_notify.sh
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list