base-files: fix inverse logic in board_detect script
authorJohn Crispin <john@openwrt.org>
Tue, 19 Aug 2014 09:59:39 +0000 (09:59 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 19 Aug 2014 09:59:39 +0000 (09:59 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42220

package/base-files/files/bin/board_detect

index ddd17a1..ee04b9e 100755 (executable)
@@ -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)