From b6d85b04286d30498a11aaac36e75032b1e72801 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 10 Jun 2006 18:18:37 +0000 Subject: Added all work so far... git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@2 8f53b18a-e215-0410-8885-9f593d34873e --- chroot.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 chroot.sh (limited to 'chroot.sh') diff --git a/chroot.sh b/chroot.sh new file mode 100755 index 0000000..76db488 --- /dev/null +++ b/chroot.sh @@ -0,0 +1,29 @@ +#!/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 -- cgit v1.2.3