Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
e958203796650e3959a43708d67534bf36f4c83b
/
.
/
package
/
base-files
/
files
/
bin
/
board_detect
blob: 94f45bec53a70a9a53fefc53e00c3279511e9f3c [
file
] [
log
] [
blame
]
#!/bin/sh
CFG
=
$1
[
-
n
"$CFG"
]
||
CFG
=/
etc
/
board
.
json
[
-
d
"/etc/board.d/"
-
a
!
-
s
"$CFG"
]
&&
{
for
a
in
$
(
ls
/
etc
/
board
.
d
/*);
do
[
-
s $a
]
||
continue
;
$
(.
$a
)
done
}
[
-
s
"$CFG"
]
||
return
1