1
1
Files
zyxel-vmg8825_b50b-cfw/package/base-files-qca/files/bin/board_detect
T
2026-04-17 18:33:03 +02:00

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
}