From: John Crispin Date: Tue, 19 Aug 2014 09:59:39 +0000 (+0000) Subject: base-files: fix inverse logic in board_detect script X-Git-Tag: v15.05~3537 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=fede953fc292ccc63a470a66f2da7e44c02fb94b;p=openwrt-github%2F.git base-files: fix inverse logic in board_detect script Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42220 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect index ddd17a1633..ee04b9e64d 100755 --- a/package/base-files/files/bin/board_detect +++ b/package/base-files/files/bin/board_detect @@ -1,6 +1,6 @@ #!/bin/sh -[ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] || { +[ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] && { for a in `ls /etc/board.d/*`; do [ -x $a ] || continue; $(. $a)