From 7cd42984d306f3a06b7e2b72aadbc4d41c0e3ebf Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 14 Sep 2010 02:18:49 +0200 Subject: Split iso-implementations --- templates/iso | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'templates/iso') 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 -- cgit v1.2.3-70-g09d2