mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
abfe2f1bc2
If the network/wan configuration contains "solos0" ... "solos3" then this list of strings will be applied to the FPGA when the hardware is hotplug added. The syntax should be "tag=value", as per the values enumerated in the solos-attr.c list. In the canned example, the modem is temporarily turned off, told to detect noise, told to disable annexes M and A (effectively putting it into pure ADSL mode), and re-activated. There's probably a more appropriate function name than "dialog" but that's what I came up with. Handle other ATM hardware (Eagle, etc) besides solos-pci. SVN-Revision: 25510
16 lines
384 B
Bash
16 lines
384 B
Bash
#!/bin/sh
|
|
|
|
uci batch <<__EOF__
|
|
|
|
delete network.wan.solos0
|
|
|
|
add_list network.wan.solos0="ActivateLine=Abort"
|
|
add_list network.wan.solos0="Retrain=EnableAll"
|
|
add_list network.wan.solos0="DetectNoise=Enable"
|
|
add_list network.wan.solos0="BisMCapability=Disable"
|
|
add_list network.wan.solos0="BisACapability=Disable"
|
|
add_list network.wan.solos0="ActivateLine=Start"
|
|
|
|
commit network
|
|
__EOF__
|