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