summaryrefslogtreecommitdiff
path: root/umount.sh
blob: bc7d15354c2bc12f6bf692848d10f1446890e65a (plain)
  1. #!/bin/sh
  2. . ./common-settings || exit 1
  3. if [ "$1" = "temp" ]; then
  4. target="$targettemp"
  5. else
  6. target="$mountpoint"
  7. fi
  8. if [ "$FLASHYBRID" = "yes" ]; then
  9. if [ -d "$targetoffline" ]; then
  10. for dir in $flashybrid_diskstore; do
  11. umount $target$dir || true
  12. done
  13. else
  14. echo "WARNING: offline target $targetoffline does not exist." >&2
  15. fi
  16. fi
  17. [ -n "$pubdev_host" ] && umount "$target/pub" || true
  18. #umount proc-flashybrid || true
  19. if [ -d /sys ]; then
  20. umount "$target/sys" || true
  21. fi
  22. #if [ -d /dev/.udevdb ] || [ -f /dev/.devfsd ]; then
  23. # umount "$target/dev" || true
  24. #fi
  25. if [ ! "$1" = "temp" ]; then
  26. # [ -n "$bootdev_host" ] && umount "$target/boot" || true
  27. [ -n "$rootdev_host" ] && umount "$target" || true
  28. fi