improve user feedback in blobutil
make it output messages that tell the user important information. it's only subtle but it makes a difference to some people, who need confirmation. Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
59dba6cfcd
commit
8459e33bbc
|
@ -53,19 +53,18 @@ main()
|
||||||
board="${1}"
|
board="${1}"
|
||||||
boarddir="${cbcfgsdir}/${board}"
|
boarddir="${cbcfgsdir}/${board}"
|
||||||
|
|
||||||
exit_if_no_config="exit 0"
|
[ ! -d "${boarddir}" ] && \
|
||||||
|
fail "Board target, ${board}, not defined"
|
||||||
|
[ ! -f "${boarddir}/target.cfg" ] && \
|
||||||
|
fail "Target missing target.cfg"
|
||||||
|
|
||||||
|
no_config="printf \"No config for target, %s\\n\" ${board} 1>&2; exit 0"
|
||||||
for x in "${boarddir}"/config/*; do
|
for x in "${boarddir}"/config/*; do
|
||||||
if [ -f "${x}" ]; then
|
if [ -f "${x}" ]; then
|
||||||
exit_if_no_config=""
|
no_config=""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
eval "${exit_if_no_config}"
|
eval "${no_config}"
|
||||||
|
|
||||||
if [ ! -d "${boarddir}" ]; then
|
|
||||||
fail "Target not defined"
|
|
||||||
elif [ ! -f "${boarddir}/target.cfg" ]; then
|
|
||||||
fail "Target missing target.cfg"
|
|
||||||
fi
|
|
||||||
|
|
||||||
detect_firmware || exit 0
|
detect_firmware || exit 0
|
||||||
scan_sources_config
|
scan_sources_config
|
||||||
|
|
|
@ -69,6 +69,10 @@ main()
|
||||||
check_board
|
check_board
|
||||||
build_dependencies
|
build_dependencies
|
||||||
inject_blobs
|
inject_blobs
|
||||||
|
|
||||||
|
printf "Friendly reminder (this is *not* an error message):\n"
|
||||||
|
printf "Please always ensure that the files were inserted correctly.\n"
|
||||||
|
printf "Read https://libreboot.org/docs/install/ivy_has_common.html\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_board()
|
check_board()
|
||||||
|
|
Loading…
Reference in New Issue