/usr/share/ltsp/plugins/ltsp-build-client/Gentoo/001-set-arch is in ltsp-server 5.5.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | case "$MODE" in
commandline)
add_option "arch" "`eval_gettext "set the target architecture"`" "regular" "true"
;;
configure)
if [ -n "$option_arch_value" ] || [ -n "$ARCH" ]; then
ARCH="${option_arch_value:-$ARCH}"
else
ARCH=i686
fi
# determining main arch (needed to retrieve stage file)
case "${ARCH}" in
i486|i686)
MAIN_ARCH=x86
;;
amd64)
MAIN_ARCH=amd64
;;
*)
printf "`eval_gettext "ERROR: unsupported architecture. Check your --arch argument: %s"`", $ARCH_OPT
printf "`eval_gettext " supported values are: %s"`", "i486, i686, amd64"
exit 1
;;
esac
;;
esac
|