summaryrefslogtreecommitdiffstats
path: root/contrib/amd/scripts/am-eject.in
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-09-02 17:19:13 +0000
committerobrien <obrien@FreeBSD.org>2001-09-02 17:19:13 +0000
commitac3e3d43d4bfa5d6b9dcc48360ec6bf36b03ed82 (patch)
treef360f5a4cfde557f960abf8a2685577136e077fd /contrib/amd/scripts/am-eject.in
parentaf59541d88274a855749824b48db3943f4e68c34 (diff)
downloadFreeBSD-src-ac3e3d43d4bfa5d6b9dcc48360ec6bf36b03ed82.zip
FreeBSD-src-ac3e3d43d4bfa5d6b9dcc48360ec6bf36b03ed82.tar.gz
Virgin import of AMD (am-utils) v6.0.7
Diffstat (limited to 'contrib/amd/scripts/am-eject.in')
-rw-r--r--contrib/amd/scripts/am-eject.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/amd/scripts/am-eject.in b/contrib/amd/scripts/am-eject.in
index ed7e2d0..1f7f14d 100644
--- a/contrib/amd/scripts/am-eject.in
+++ b/contrib/amd/scripts/am-eject.in
@@ -12,7 +12,7 @@ PATH=@sbindir@:@bindir@:/usr/ucb:/usr/bin:/bin:${PATH}
export PATH
if [ $# -ne 1 ]; then
- echo "Usage: $0 cd|fd"
+ echo "Usage: $0 cd|cdrom|fd|floppy"
exit 2
fi
@@ -26,7 +26,7 @@ fi
# append name of medium
case "$1" in
cd|fd) fs=$fs/$1;;
- *) echo "Usage: $0 cd|fd"; exit 2;;
+ *) echo "Usage: $0 cd|cdrom|fd|floppy"; exit 2;;
esac
# is the medium mounted?
@@ -47,6 +47,7 @@ else
fi
case $1 in
- cd) eject;; # eject CD-ROM
- fd) echo "Ok to remove disk";;
+ cd|cdrom) eject cdrom || eject ;; # eject CD-ROM
+ fd|floppy) eject floppy || eject
+ echo "Ok to remove disk" ;;
esac
OpenPOWER on IntegriCloud