lantiq: more vdsl related cleanups
[openwrt.git] / package / network / config / ltq-adsl-app / files / dsl_control
index e48b72b059437d5e0f08406dc74c56d9fa541d74..fef0834b12d63eccb37b4c52ab6670952950e9c5 100644 (file)
@@ -38,11 +38,15 @@ start() {
        eval "xtu=\"\${annex_$annex}\""
 
        [ -z "${firmware}" ] &&
-               firmware=adsl.bin
+               firmware=/lib/firmware/adsl.bin
+       [ -f "${firmware}" ] || {
+               echo failed to find $firmware
+               return 1
+       }
 
        service_start /sbin/dsl_cpe_control -i${xtu} \
                        -n /sbin/dsl_notify.sh \
-                       -f /lib/firmware/${firmware}
+                       -f ${firmware}
 }
 
 stop() {