Module Name:    src
Committed By:   jym
Date:           Sun Feb 13 03:58:38 UTC 2011

Modified Files:
        src/distrib/amd64/ramdisks/common: dot.profile
        src/distrib/i386/ramdisks/common: dot.profile

Log Message:
Sync the ramdisks dot.profile file between amd64 and i386.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/amd64/ramdisks/common/dot.profile
cvs rdiff -u -r1.5 -r1.6 src/distrib/i386/ramdisks/common/dot.profile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/amd64/ramdisks/common/dot.profile
diff -u src/distrib/amd64/ramdisks/common/dot.profile:1.2 src/distrib/amd64/ramdisks/common/dot.profile:1.3
--- src/distrib/amd64/ramdisks/common/dot.profile:1.2	Wed Oct 22 11:58:00 2008
+++ src/distrib/amd64/ramdisks/common/dot.profile	Sun Feb 13 03:58:38 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: dot.profile,v 1.2 2008/10/22 11:58:00 tsutsui Exp $
+#	$NetBSD: dot.profile,v 1.3 2011/02/13 03:58:38 jym Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,13 +36,13 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 TERM=wsvt25
+export TERM
 HOME=/
 export HOME
 BLOCKSIZE=1k
 export BLOCKSIZE
 EDITOR=ed
 export EDITOR
-export TERM
 
 umask 022
 
@@ -55,14 +55,15 @@
 	# set up some sane defaults
 	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
 	stty newcrt werase ^W intr ^C kill ^U erase ^?
-	echo ''
+	mount -t tmpfs tmpfs /tmp
+	mount -t tmpfs tmpfs /var
+	mount -t tmpfs -o union tmpfs /etc
+
+	mkdir -p /var/run /var/db
 
 	# mount the ramdisk read write
 	mount -u $ROOTDEV /
 
-	# pull in the functions that people will use from the shell prompt.
-	# . /.commonutils
-	# . /.instutils
 	grep() sed -n "/$1/p"
 
 	if [ -x /sysinst ]; then

Index: src/distrib/i386/ramdisks/common/dot.profile
diff -u src/distrib/i386/ramdisks/common/dot.profile:1.5 src/distrib/i386/ramdisks/common/dot.profile:1.6
--- src/distrib/i386/ramdisks/common/dot.profile:1.5	Sun Apr  4 22:56:44 2010
+++ src/distrib/i386/ramdisks/common/dot.profile	Sun Feb 13 03:58:38 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: dot.profile,v 1.5 2010/04/04 22:56:44 martin Exp $
+#	$NetBSD: dot.profile,v 1.6 2011/02/13 03:58:38 jym Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -46,22 +46,24 @@
 
 umask 022
 
+ROOTDEV=/dev/md0a
+
 if [ "X${DONEPROFILE}" = "X" ]; then
 	DONEPROFILE=YES
 	export DONEPROFILE
 
-	echo ''
-	echo 'Please wait.'
-	echo ''
-
 	# set up some sane defaults
-	stty newcrt werase ^W intr ^C kill ^U erase ^H
+	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
+	stty newcrt werase ^W intr ^C kill ^U erase ^?
 	mount -t tmpfs tmpfs /tmp
 	mount -t tmpfs tmpfs /var
 	mount -t tmpfs -o union tmpfs /etc
 
 	mkdir -p /var/run /var/db
 
+	# mount the ramdisk read write
+	mount -u $ROOTDEV /
+
 	grep() sed -n "/$1/p"
 
 	if [ -x /sysinst ]; then

Reply via email to