lantiq-dsl: add 2 ugly workarounds for the IB to work
authorJohn Crispin <john@openwrt.org>
Mon, 21 Jul 2014 18:41:46 +0000 (18:41 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 21 Jul 2014 18:41:46 +0000 (18:41 +0000)
the IB tries to run the enable target on all init.d scripts.
It fails when including the dsl_control helper. Check for existence
prior to the include.

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41787

package/network/config/ltq-adsl-app/files/dsl_control
package/network/config/ltq-vdsl-app/files/dsl_control

index fef0834b12d63eccb37b4c52ab6670952950e9c5..cece347b85dc04690a0445f16e99bd345aef9b56 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
index 7c423114cba9fc337dfd56c0fd6ecded99bd7b4e..4bfea97031fccce7efbd222a833927363ee80e63 100644 (file)
@@ -11,7 +11,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
 XDSL_CTRL=vdsl_cpe_control
 
 # G.992.1 Annex A