summaryrefslogtreecommitdiff
path: root/templates/iso
blob: 2aad3cd9125e17958a9fec1151362938dc759fab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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


# wrapper phases

iso_prepare () {
    ${ISO_TYPE}_prepare
}

iso_cleanup () {
    ${ISO_TYPE}_cleanup
}

EXPORT prepare cleanup
# vim:ft=sh