projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dnsmasq: change 'add_local_hostname' to use dnsmasq '--interface-name'
[oweals/openwrt.git]
/
package
/
base-files
/
files
/
bin
/
board_detect
diff --git
a/package/base-files/files/bin/board_detect
b/package/base-files/files/bin/board_detect
index f9640f0388717b389a69483f9e3cdcdda08aba0f..441db6a08fc9e349b3fca1efc68a9c7934d3bb77 100755
(executable)
--- 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