summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-09-14 19:39:59 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-09-14 19:39:59 +0200
commit855946fa969e77dcd96f30e3c5ae52a5e56b92f2 (patch)
tree4325fbdd9bb5a9649341c4a1e2ab2503a43f9b38
parent2da1b6da261e67bb74059e353c7c689d793cc60c (diff)
downloadplay-855946fa969e77dcd96f30e3c5ae52a5e56b92f2.tar.gz
play-855946fa969e77dcd96f30e3c5ae52a5e56b92f2.tar.bz2
play-855946fa969e77dcd96f30e3c5ae52a5e56b92f2.zip
Enhanced the iso-template
-rw-r--r--templates/iso17
1 files changed, 13 insertions, 4 deletions
diff --git a/templates/iso b/templates/iso
index 4f4c52c..ce3fd74 100644
--- a/templates/iso
+++ b/templates/iso
@@ -1,8 +1,17 @@
-if [[ $ISO_TYPE == 'fuseiso' || -n $MOUNTTARGET ]]; then
- inherit fuseiso
-else
- inherit cdemu
+if [[ -z $ISO_TYPE ]]; then
+ # default
+ ISO_TYPE='cdemu'
+
+ # guess :)
+ [[ -n $MOUNTTARGET ]] && ISO_TYPE='fuseiso'
+ [[ -n $CDEMU_NO ]] && ISO_TYPE='cdemu'
fi
+case $ISO_TYPE in
+ 'fuseiso') inherit fuseiso;;
+ 'cdemu') inherit cdemu;;
+ *) die "Unknown ISO_TYPE: '$ISO_TYPE'";;
+esac
+
# vim:ft=sh