diff options
Diffstat (limited to 'distrib/sun3/miniroot/dot.profile')
-rw-r--r-- | distrib/sun3/miniroot/dot.profile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/sun3/miniroot/dot.profile b/distrib/sun3/miniroot/dot.profile index 084b08c954e..f9950047ef2 100644 --- a/distrib/sun3/miniroot/dot.profile +++ b/distrib/sun3/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.7 2002/04/01 01:31:39 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.8 2002/04/09 20:04:09 deraadt Exp $ # # Copyright (c) 1995 Jason R. Thorpe # Copyright (c) 1994 Christopher G. Demetriou @@ -42,10 +42,12 @@ set -o emacs # emacs-style command line editing TERMS="sun vt* pcvt* dumb" TERM=sun +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' |