diff options
Diffstat (limited to 'distrib/i386')
-rw-r--r-- | distrib/i386/floppies/common/dot.profile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/i386/floppies/common/dot.profile b/distrib/i386/floppies/common/dot.profile index 4d27c8d3baf..cf234126cc5 100644 --- a/distrib/i386/floppies/common/dot.profile +++ b/distrib/i386/floppies/common/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.8 2002/04/01 01:31:39 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.9 2002/04/09 20:04:09 deraadt Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 1995 Jason R. Thorpe @@ -35,10 +35,12 @@ export PATH=/sbin:/bin:/usr/bin:/usr/sbin:/ umask 022 set -o emacs # emacs-style command line editing +rootdisk=`dmesg|grep "^root on"|{ o=;while read x y z t;do o=/dev/$z;done;echo $o;}` + if [ "X${DONEPROFILE}" = "X" ]; then DONEPROFILE=YES - mount -u /dev/rd0a / + mount -u ${rootdisk:-/dev/rd0a} / # set up some sane defaults echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' |