#!/bin/sh . ./config-DEFAULTS || exit 1 . ./config-HOST || exit 1 . ./config-TARGET || exit 1 . ./config-MANDATED || exit 1 if [ "$1" = "temp" ]; then shift ./mount.sh temp || exit 1 export debian_chroot="flashybrid" #chroot "$target" /bin/bash -l $@ chroot "$targettemp" $@ exitcode=$? ./umount.sh temp else ./mount.sh || exit 1 export debian_chroot="flashybrid" #chroot "$target" /bin/bash -l $@ chroot "$mountpoint" $@ exitcode=$? ./umount.sh fi exit $exitcode