mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-30 02:22:09 +00:00
9ba6cd186a
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42220
15 lines
265 B
Bash
Executable File
15 lines
265 B
Bash
Executable File
#!/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
|
|
}
|