linuxOS_AP06/device/rockchip/common/scripts/check-loader.sh
2025-06-03 12:28:32 +08:00

13 lines
273 B
Bash
Executable File

#!/bin/bash -e
RK_SCRIPTS_DIR="${RK_SCRIPTS_DIR:-$(dirname "$(realpath "$0")")}"
if ! which python2 >/dev/null; then
echo -e "\e[35m"
echo "Your python2 is missing for U-Boot"
echo "Please install it:"
"$RK_SCRIPTS_DIR/install-python2.sh"
echo -e "\e[0m"
exit 1
fi