diff mbox

[OpenWrt-Devel] lantiq: fix logic error in dsl board.d code

Message ID 1449273947-5489-1-git-send-email-openwrt@kresin.me
State Accepted
Delegated to: Jo-Philipp Wich
Headers show

Commit Message

Mathias Kresin Dec. 5, 2015, 12:05 a.m. UTC
Starting with r47755 the pppoe wan interface section isn't any longer added to
the network config on firstboot, using the default configuration. Since the
commit message does not mention such a change, I assume that this wasn't
intentionally.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jo-Philipp Wich Dec. 6, 2015, 8:45 a.m. UTC | #1
Hi Mathias,

you're right - I accidentally inverted the logic.

Patch committed with r47793.

~ Jow
diff mbox

Patch

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 039f57b..08a143f 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -130,7 +130,7 @@  VGV7510KW22)
 
 esac
 
-if [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
+if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
 	ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
 	ucidef_set_interface_wan "nas0" "pppoe"
 fi