File: sample.cdumount

package info (click to toggle)
super 3.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,860 kB
  • sloc: ansic: 24,673; sh: 297; makefile: 296
file content (30 lines) | stat: -rw-r--r-- 594 bytes parent folder | download | duplicates (5)
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
#!/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/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 /bin/umount -v /cdrom
     /bin/umount -v /cdrom