summaryrefslogtreecommitdiff
path: root/templates/iso
diff options
context:
space:
mode:
Diffstat (limited to 'templates/iso')
-rw-r--r--templates/iso20
1 files changed, 5 insertions, 15 deletions
diff --git a/templates/iso b/templates/iso
index 3b08b02..4f4c52c 100644
--- a/templates/iso
+++ b/templates/iso
@@ -1,18 +1,8 @@
-iso_prepare () {
- default_prepare
-
- declare -g MOUNT MOUNTTARGET
-
- [[ $MOUNT != /* ]] && MOUNT="$HOME/isos/spiele/$MOUNT"
- [[ -z $MOUNTTARGET ]] && MOUNTTARGET="$HOME/isos/mnt"
- exc fuseiso $MOUNT $MOUNTTARGET
-}
-
-iso_cleanup () {
- exc fusermount -u $MOUNTTARGET
-}
-
-EXPORT iso prepare cleanup
+if [[ $ISO_TYPE == 'fuseiso' || -n $MOUNTTARGET ]]; then
+ inherit fuseiso
+else
+ inherit cdemu
+fi
# vim:ft=sh