#!/bin/sh # This sample script assumes that there is only one cdrom drive, # and that it is on /cdrom. It unmounts the cdrom. prog=`basename $0` # If script invoked w/o super, then exec super to run this script. test "X$SUPERCMD" = "X$prog" || exec /usr/local/bin/super $prog ${1+"$@"} usage() { cat <<-END Use: $prog Purpose: Unmounts a cdrom from /cdrom. END } case $# in 0 ) ;; * ) usage ; exit 1 ;; esac PATH=$PATH:/usr/etc # SunOS 4.x needs this for mount; not sure # if needed for umount. export PATH echo /etc/umount -v /cdrom /etc/umount -v /cdrom