2014-08-18 13:09:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-08-19 09:59:39 +00:00
|
|
|
[ -d "/etc/board.d/" -a ! -f "/etc/board.json" ] && {
|
2014-08-18 13:09:17 +00:00
|
|
|
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
|
|
|
|
}
|