This allows /etc/board.d/* scripts to use values from the uboot environment.
Signed-off-by: John Crispin <john@phrozen.org>
cd /etc/uci-defaults || return 0
files="$(ls)"
[ -z "$files" ] && return 0
- mkdir -p /tmp/.uci
for file in $files; do
( . "./$(basename $file)" ) && rm -f "$file"
done
sleep 1
}
+ mkdir -p /tmp/.uci
+ [ -f /etc/uci-defaults/30_uboot-envtools ] && (. /etc/uci-defaults/30_uboot-envtools)
/bin/config_generate
rm -f /tmp/.config_pending
/sbin/wifi config