summaryrefslogtreecommitdiff
path: root/chroot.sh
blob: 76db4885d109909794f73fdbd8bf97d6df2f02e2 (plain)
  1. #!/bin/sh
  2. . ./config-DEFAULTS || exit 1
  3. . ./config-HOST || exit 1
  4. . ./config-TARGET || exit 1
  5. . ./config-MANDATED || exit 1
  6. if [ "$1" = "temp" ]; then
  7. shift
  8. ./mount.sh temp || exit 1
  9. export debian_chroot="flashybrid"
  10. #chroot "$target" /bin/bash -l $@
  11. chroot "$targettemp" $@
  12. exitcode=$?
  13. ./umount.sh temp
  14. else
  15. ./mount.sh || exit 1
  16. export debian_chroot="flashybrid"
  17. #chroot "$target" /bin/bash -l $@
  18. chroot "$mountpoint" $@
  19. exitcode=$?
  20. ./umount.sh
  21. fi
  22. exit $exitcode