Source-Changes-HG archive

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

[src/trunk]: src/distrib Sync the ramdisks dot.profile file between amd64 and...



details:   https://anonhg.NetBSD.org/src/rev/a18aa577518a
branches:  trunk
changeset: 762004:a18aa577518a
user:      jym <jym%NetBSD.org@localhost>
date:      Sun Feb 13 03:58:38 2011 +0000

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

diffstat:

 distrib/amd64/ramdisks/common/dot.profile |  13 +++++++------
 distrib/i386/ramdisks/common/dot.profile  |  14 ++++++++------
 2 files changed, 15 insertions(+), 12 deletions(-)

diffs (83 lines):

diff -r 376ea275a8d8 -r a18aa577518a distrib/amd64/ramdisks/common/dot.profile
--- a/distrib/amd64/ramdisks/common/dot.profile Sun Feb 13 01:53:50 2011 +0000
+++ b/distrib/amd64/ramdisks/common/dot.profile Sun Feb 13 03:58:38 2011 +0000
@@ -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
diff -r 376ea275a8d8 -r a18aa577518a distrib/i386/ramdisks/common/dot.profile
--- a/distrib/i386/ramdisks/common/dot.profile  Sun Feb 13 01:53:50 2011 +0000
+++ b/distrib/i386/ramdisks/common/dot.profile  Sun Feb 13 03:58:38 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index