base-files: fix inverse logic in board_detect script

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42220
master
John Crispin 10 years ago
parent fe3d4f2176
commit 9ba6cd186a
  1. 2
      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)

Loading…
Cancel
Save