aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-02-17 23:29:46 +0100
committerMathias Kresin <dev@kresin.me>2017-02-18 16:51:31 +0100
commitbececcce868eff1864c60c87c9b82cb8114510cf (patch)
tree836490c7cec4f1168a3aaa234d63c00d93c30352
parente88b36f4be7e583f12fb901298a8a58224bced36 (diff)
downloadupstream-bececcce868eff1864c60c87c9b82cb8114510cf.tar.gz
upstream-bececcce868eff1864c60c87c9b82cb8114510cf.tar.bz2
upstream-bececcce868eff1864c60c87c9b82cb8114510cf.zip
lantiq: fix warning if ltq_atm modules are missing
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>
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network3
1 files changed, 1 insertions, 2 deletions
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 41d6b7fab3..576bb7d86b 100755
--- 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"