/usr/share/doc/super/examples/cdmount is in super 3.30.0-7build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 | #!/bin/sh
prog=`basename $0`
# If script invoked w/o super, then exec super to run this script.
test "X$SUPERCMD" = "X$prog" || exec /usr/bin/super $prog ${1+"$@"}
usage() {
cat <<-END
Use:
$prog
Purpose:
Mounts a cdrom on /cdrom.
END
}
case $# in
0 ) ;;
* ) usage ; exit 1 ;;
esac
type="iso9660"
# case "$type" in
# 4.2 | hsfs ) ;;
# -h ) usage ; exit 0 ;;
# * ) echo "$prog: unknown cd type $1" ; usage ; exit 1 ;;
# esac
# PATH=$PATH:/usr/etc # SunOS 4.x needs this to understand type hsfs
# export PATH
echo /bin/mount -v -r -t $type -o nosuid /dev/cdrom /cdrom
/bin/mount -v -r -t $type -o nosuid /dev/cdrom /cdrom
|