linuxOS_PX30_CAR/yocto/poky/meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper
2026-01-20 14:00:13 +08:00

26 lines
548 B
Bash
Executable File

#! /bin/sh
# Copyright 2020 Garmin Ltd. or its subsidiaries
#
# SPDX-License-Identifier: GPL-2.0
#
# Attempts to find and exec the host qemu-bridge-helper program
# If the QEMU_BRIDGE_HELPER variable is set by the user, exec it.
if [ -n "$QEMU_BRIDGE_HELPER" ]; then
exec "$QEMU_BRIDGE_HELPER" "$@"
fi
# Search common paths for the helper program
BN="qemu-bridge-helper"
PATHS="/usr/libexec/ /usr/lib/qemu/"
for p in $PATHS; do
if [ -e "$p/$BN" ]; then
exec "$p/$BN" "$@"
fi
done
echo "$BN not found!" > /dev/stderr
exit 1