瀏覽代碼

base-files: fix inverse logic in board_detect script

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 42220
John Crispin 11 年之前
父節點
當前提交
9ba6cd186a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/base-files/files/bin/board_detect

+ 1 - 1
package/base-files/files/bin/board_detect

@@ -1,6 +1,6 @@
 #!/bin/sh
 #!/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
 	for a in `ls /etc/board.d/*`; do
 		[ -x $a ] || continue;
 		[ -x $a ] || continue;
 		$(. $a)
 		$(. $a)