#!/bin/sh program=`basename $0` if [ $# -lt 2 ]; then echo "Usage: ${program} " echo " ISO image file" echo " any existing directory" exit 1 fi exec 2>&1 exec >/dev/null imagefile=$1 mountpoint=$2 unit=`mdconfig -a -t vnode -f ${imagefile}` mount_cd9660 -o ro /dev/${unit} ${mountpoint}