projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88b36f
)
lantiq: fix warning if ltq_atm modules are missing
author
Mathias Kresin
<dev@kresin.me>
Fri, 17 Feb 2017 22:29:46 +0000
(23:29 +0100)
committer
Mathias Kresin
<dev@kresin.me>
Sat, 18 Feb 2017 15:51:31 +0000
(16:51 +0100)
Fixes the following warning on first boot if the ltq_atm modules are
not included in the image:
ls: /lib/modules/4.4.49/ltq_atm*: No such file or directory
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/base-files/etc/board.d/02_network
patch
|
blob
|
history
diff --git
a/target/linux/lantiq/base-files/etc/board.d/02_network
b/target/linux/lantiq/base-files/etc/board.d/02_network
index 41d6b7fab3a3d5e01d74620880b6805413bf55ad..576bb7d86bc8f2746e96bde716f51e553a4dd774 100755
(executable)
--- a/
target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/
target/linux/lantiq/base-files/etc/board.d/02_network
@@
-164,9
+164,8
@@
WBMR300)
esac
-if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
+ls /lib/modules/$(uname -r)/ltq_atm* 1> /dev/null 2>&1 && \
ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
-fi
if lantiq_is_vdsl_system; then
interface_wan="ptm0"