lantiq: move esi calls to dsl_cpe_control scripts to fix ordering wrt. loading vr9...
[openwrt-working-2016/.git] / package / network / config / ltq-adsl-app / files / dsl_control
index fef0834b12d63eccb37b4c52ab6670952950e9c5..0c7221c24fe4bf353df196ec3cf862649b2f7bba 100644 (file)
@@ -10,7 +10,7 @@ EXTRA_HELP="  status  Get DSL status information
 SERVICE_DAEMONIZE=1
 SERVICE_WRITE_PID=1
 
-. /lib/functions/lantiq_dsl.sh
+[ -f /lib/functions/lantiq_dsl.sh ] && . /lib/functions/lantiq_dsl.sh
 
 annex_b=10_00_10_00_00_04_00_00
 annex_bdmt=10_00_00_00_00_00_00_00
@@ -44,6 +44,8 @@ start() {
                return 1
        }
 
+       esi $(printf '%012X' $((1+0x$(tr -d : </sys/class/net/eth0/address))))
+
        service_start /sbin/dsl_cpe_control -i${xtu} \
                        -n /sbin/dsl_notify.sh \
                        -f ${firmware}