mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-01-22 19:16:19 +07:00
17 lines
765 B
Bash
Executable File
17 lines
765 B
Bash
Executable File
function fetch_sources_tools__rkbin_tools() {
|
|
fetch_from_repo "https://github.com/armbian/rkbin" "${EXTER}/cache/sources/rkbin-tools" "branch:master"
|
|
}
|
|
|
|
function build_host_tools__install_rkbin_tools() {
|
|
# install only if git commit hash changed
|
|
cd "${EXTER}"/cache/sources/rkbin-tools || exit
|
|
# need to check if /usr/local/bin/loaderimage to detect new Docker containers with old cached sources
|
|
if [[ ! -f .commit_id || $(improved_git rev-parse @ 2>/dev/null) != $(<.commit_id) || ! -f /usr/local/bin/loaderimage ]]; then
|
|
display_alert "Installing" "rkbin-tools" "info"
|
|
mkdir -p /usr/local/bin/
|
|
install -m 755 tools/loaderimage /usr/local/bin/
|
|
install -m 755 tools/trust_merger /usr/local/bin/
|
|
improved_git rev-parse @ 2>/dev/null >.commit_id
|
|
fi
|
|
}
|