diff options
Diffstat (limited to 'package/base-files/files/bin/board_detect')
-rwxr-xr-x | package/base-files/files/bin/board_detect | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect index f9640f0388..441db6a08f 100755 --- a/package/base-files/files/bin/board_detect +++ b/package/base-files/files/bin/board_detect @@ -4,11 +4,11 @@ CFG=$1 [ -n "$CFG" ] || CFG=/etc/board.json -[ -d "/etc/board.d/" -a ! -f "$CFG" ] && { +[ -d "/etc/board.d/" -a ! -s "$CFG" ] && { for a in `ls /etc/board.d/*`; do [ -x $a ] || continue; $(. $a) done } -[ -f "$CFG" ] || return 1 +[ -s "$CFG" ] || return 1 |