Debian Codegraph @

qemu-stubs/qemu-system-x86_64

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # SPDX-License-Identifier: Apache-2.0
3 # SPDX-FileCopyrightText: Zygmunt Krynicki
4 set -eu
5
6 GARDEN_QEMU_SYSTEM=x86_64
7 # NOTE The difference between _ and -.
8 GARDEN_COMPONENT=qemu-x86-64
9
10 # If the component is not installed, fail with an error message.
11 if [scip-shell system . . `[`. ! -d "$SNAP"/../components/"$SNAP_REVISION"/"$GARDEN_COMPONENT" ]; then
12 echoscip-shell system . . echo. "install $GARDEN_COMPONENT component to use $GARDEN_QEMU_SYSTEM emulation" >&2
13 exit 1
14 fi
15
16 # Execute qemu-system-$GARDEN_QEMU_SYSTEM through the symbolic link created above.
17 exec "$SNAP"/components/"$GARDEN_COMPONENT"/bin/qemu-system-$GARDEN_QEMU_SYSTEM "$@"