projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lantiq: more vdsl related cleanups
[openwrt/svn-archive/archive.git]
/
package
/
network
/
config
/
ltq-vdsl-app
/
files
/
dsl_control
diff --git
a/package/network/config/ltq-vdsl-app/files/dsl_control
b/package/network/config/ltq-vdsl-app/files/dsl_control
index c6be2284941dfdb0aabd661b7fca806b8a769c72..7c423114cba9fc337dfd56c0fd6ecded99bd7b4e 100644
(file)
--- a/
package/network/config/ltq-vdsl-app/files/dsl_control
+++ b/
package/network/config/ltq-vdsl-app/files/dsl_control
@@
-1,7
+1,8
@@
#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
-START=99
+# needs to start before the atm layer which starts at 50
+START=48
EXTRA_COMMANDS="status lucistat"
EXTRA_HELP=" status Get DSL status information
EXTRA_COMMANDS="status lucistat"
EXTRA_HELP=" status Get DSL status information
@@
-153,7
+154,7
@@
start() {
esac
eval "xtse_adsl=\"\${xtse_adsl_$annex}\""
esac
eval "xtse_adsl=\"\${xtse_adsl_$annex}\""
- [ -z "${xtse_adsl}" ] && xtse_adsl=$xtse_adsl_
b
+ [ -z "${xtse_adsl}" ] && xtse_adsl=$xtse_adsl_
a
eval "tone_adsl=\"\${tone_adsl_$tone}\""
[ -z "${tone_adsl}" ] && tone_adsl=$tone_adsl_av
eval "tone_adsl=\"\${tone_adsl_$tone}\""
[ -z "${tone_adsl}" ] && tone_adsl=$tone_adsl_av
@@
-161,7
+162,11
@@
start() {
eval "tone_vdsl=\"\${tone_vdsl_$tone}\""
[ -z "${tone_vdsl}" ] && tone_vdsl=$tone_vdsl_av
eval "tone_vdsl=\"\${tone_vdsl_$tone}\""
[ -z "${tone_vdsl}" ] && tone_vdsl=$tone_vdsl_av
- [ -z "${firmware}" ] && firmware=vdsl.bin
+ [ -z "${firmware}" ] && firmware=/lib/firmware/vdsl.bin
+ [ -f "${firmware}" ] || {
+ echo failed to find $firmware
+ return 1
+ }
xdsl_scr adsl "${xtse_adsl}"
xdsl_scr vdsl "${xtse_vdsl}"
xdsl_scr adsl "${xtse_adsl}"
xdsl_scr vdsl "${xtse_vdsl}"
@@
-170,7
+175,7
@@
start() {
service_start /sbin/vdsl_cpe_control \
-i `echo $xtse_adsl | sed "s/ /_/g"` \
-n /sbin/dsl_notify.sh \
service_start /sbin/vdsl_cpe_control \
-i `echo $xtse_adsl | sed "s/ /_/g"` \
-n /sbin/dsl_notify.sh \
- -f
/lib/firmware/
${firmware} \
+ -f ${firmware} \
-a /tmp/adsl.scr \
-A /tmp/vdsl.scr \
-l /tmp/lowlevel.cfg \
-a /tmp/adsl.scr \
-A /tmp/vdsl.scr \
-l /tmp/lowlevel.cfg \