diff options
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/alpha/common/dot.profile | 7 | ||||
-rw-r--r-- | distrib/i386/floppies/common/dot.profile | 6 | ||||
-rw-r--r-- | distrib/mvme88k/miniroot/dot.profile | 6 | ||||
-rw-r--r-- | distrib/sparc/miniroot/dot.profile | 6 | ||||
-rw-r--r-- | distrib/sparc64/common/dot.profile | 6 | ||||
-rw-r--r-- | distrib/sun3/miniroot/dot.profile | 6 |
6 files changed, 24 insertions, 13 deletions
diff --git a/distrib/alpha/common/dot.profile b/distrib/alpha/common/dot.profile index dbe554a2b88..6d314e99af1 100644 --- a/distrib/alpha/common/dot.profile +++ b/distrib/alpha/common/dot.profile @@ -1,5 +1,5 @@ # -# $OpenBSD: dot.profile,v 1.5 2002/04/01 01:31:39 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.6 2002/04/09 20:04:09 deraadt Exp $ # # Copyright (c) 1994 Christopher G. Demetriou # All rights reserved. @@ -40,11 +40,12 @@ TERMS=`grep '^[A-z]' /usr/share/misc/termcap | sed -e 's/|[^|]*$//' -e 's/|/ /g' TERM=vt220 PAGER=more +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 - # need a writable root - mount -u /dev/rd0a / + mount -u ${rootdisk:-/dev/rd0a} / isin() { local _a 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' diff --git a/distrib/mvme88k/miniroot/dot.profile b/distrib/mvme88k/miniroot/dot.profile index 310a930a333..f84d3868391 100644 --- a/distrib/mvme88k/miniroot/dot.profile +++ b/distrib/mvme88k/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.9 2002/04/05 03:13:18 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.10 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 @@ -43,10 +43,12 @@ set -o emacs # emacs-style command line editing TERMS="sun vt* pcvt* dumb" TERM=vt220 +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' diff --git a/distrib/sparc/miniroot/dot.profile b/distrib/sparc/miniroot/dot.profile index c9dfdfd87b3..c4a09378fd8 100644 --- a/distrib/sparc/miniroot/dot.profile +++ b/distrib/sparc/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.19 2002/04/01 01:31:39 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.20 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 @@ -43,10 +43,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' diff --git a/distrib/sparc64/common/dot.profile b/distrib/sparc64/common/dot.profile index 565bd6c4415..d876840c651 100644 --- a/distrib/sparc64/common/dot.profile +++ b/distrib/sparc64/common/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.4 2002/04/01 01:31:39 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.5 2002/04/09 20:04:09 deraadt Exp $ # # Copyright (c) 1994 Christopher G. Demetriou # All rights reserved. @@ -33,10 +33,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' 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' |