h4ck/lg_webOS/_ipk-building/base-files/ipk/bin/board_detect

15 lines
265 B
Plaintext
Raw Normal View History

2016-11-19 00:49:40 +01:00
#!/bin/sh
[ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] && {
for a in `ls /etc/board.d/*`; do
[ -x $a ] || continue;
$(. $a)
done
}
[ -f "/etc/board.json" ] || return 1
[ -f "/etc/config/network" ] || {
touch /etc/config/network
/bin/config_generate
}