Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/distrib/sparc/ramdisk Pullup 1.14 [pk]:



details:   https://anonhg.NetBSD.org/src/rev/dbaa33c347af
branches:  netbsd-1-5
changeset: 490167:dbaa33c347af
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Nov 09 21:53:43 2000 +0000

description:
Pullup 1.14 [pk]:
Add `eject'.

diffstat:

 distrib/sparc/ramdisk/dot.profile |  20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 1cd1a7a4d267 -r dbaa33c347af distrib/sparc/ramdisk/dot.profile
--- a/distrib/sparc/ramdisk/dot.profile Thu Nov 09 21:53:34 2000 +0000
+++ b/distrib/sparc/ramdisk/dot.profile Thu Nov 09 21:53:43 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.10.2.2 2000/11/01 03:05:24 tv Exp $
+# $NetBSD: dot.profile,v 1.10.2.3 2000/11/09 21:53:43 tv Exp $
 #
 # Copyright (c) 2000 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -78,11 +78,17 @@
 
 floppy()
 {
-       local dev
+       local dev rval
+
+       rval=0
+
+       echo "Ejecting floppy disk"
+       eject floppy
+
        cat <<EOF
-First, remove the boot disk from the floppy station.
+Remove the boot disk from the floppy station and insert the second disk of
+the floppy installation set into the disk drive.
 
-Next, insert the floppy disk labeled \`instfs' into the disk drive.
 The question below allows you to specify the device name of the floppy
 drive.  Usually, the default device will do just fine.
 EOF
@@ -91,7 +97,11 @@
        getresp "$dev"; dev="$_resp"
 
        echo "Extracting installation utilities... "
-       (cd $INSTFS_MP && tar zxpf $dev) || return 1
+       (cd $INSTFS_MP && tar zxpf $dev) || rval=1
+
+       echo "Ejecting floppy disk"
+       eject floppy
+       return $rval
 }
 
 tape()



Home | Main Index | Thread Index | Old Index