tone_adsl_bv="0x81" # B43 + B43c
tone_vdsl_bv="0x5" # B43 + V43
+# create ADSL autoboot script. Used for SNR margin tweak
+autoboot_script() {
+ echo "[WaitForConfiguration]={
+locs 0 $1
+}
+
+[WaitForLinkActivate]={
+}
+
+[WaitForRestart]={
+}
+
+[Common]={
+}" > /tmp/adsl.scr
+}
+
lowlevel_cfg() {
echo "# VRX Low Level Configuration File
#
local line_mode
local mode
local lowlevel
+ local snr
config_load network
config_get tone dsl tone
config_get firmware dsl firmware
config_get xfer_mode dsl xfer_mode
config_get line_mode dsl line_mode
+ config_get snr dsl ds_snr_offset
eval "xtse=\"\${xtse_xdsl_$annex}\""
lowlevel="-l /tmp/lowlevel.cfg"
}
+ [ -z "${snr}" ] || {
+ # for SNR offset setting
+ autoboot_script "$snr"
+ autoboot="-a /tmp/adsl.scr"
+ }
+
procd_open_instance
procd_set_param command /sbin/vdsl_cpe_control_wrapper \
-i$xtse \
-n /sbin/dsl_notify.sh \
-f ${firmware} \
$lowlevel \
- -M ${mode}
+ -M ${mode} \
+ $autoboot
procd_append_param env "LOAD=$LOAD" "UNLOAD=$UNLOAD"
procd_close_instance
}