Module Name:    src
Committed By:   kiyohara
Date:           Sun Oct 17 11:05:18 UTC 2010

Added Files:
        src/distrib/bebox/ramdisk: Makefile dot.profile list

Log Message:
Add ramdisk directory and files.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/distrib/bebox/ramdisk/Makefile \
    src/distrib/bebox/ramdisk/dot.profile src/distrib/bebox/ramdisk/list

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

Added files:

Index: src/distrib/bebox/ramdisk/Makefile
diff -u /dev/null src/distrib/bebox/ramdisk/Makefile:1.1
--- /dev/null	Sun Oct 17 11:05:18 2010
+++ src/distrib/bebox/ramdisk/Makefile	Sun Oct 17 11:05:18 2010
@@ -0,0 +1,37 @@
+#	$NetBSD: Makefile,v 1.1 2010/10/17 11:05:18 kiyohara Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+IMAGE=		ramdisk.fs
+IMAGESIZE=	2048k
+MAKEFS_FLAGS=	-f 15
+
+WARNS=		1
+DBG=		-Os -mmultiple
+
+CRUNCHBIN=	ramdiskbin
+CRUNCHGEN_FLAGS=-d "${DBG}"
+LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst.en
+MTREECONF=	${DISTRIBDIR}/common/mtree.common
+IMAGEENDIAN=	be
+MAKEDEVTARGETS=	ramdisk
+IMAGEDEPENDS=	${CRUNCHBIN} \
+		dot.profile \
+		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
+		${NETBSDSRCDIR}/etc/netconfig \
+		${DISTRIBDIR}/common/protocols \
+		${DISTRIBDIR}/common/services
+
+# Use stubs to eliminate some large stuff from libc
+HACKSRC=	${DISTRIBDIR}/utils/libhack
+.include	"${HACKSRC}/Makefile.inc"
+${CRUNCHBIN}:	libhack.o
+
+.include "${DISTRIBDIR}/common/Makefile.crunch"
+.include "${DISTRIBDIR}/common/Makefile.makedev"
+.include "${DISTRIBDIR}/common/Makefile.image"
+
+release:
+
+.include <bsd.prog.mk>
Index: src/distrib/bebox/ramdisk/dot.profile
diff -u /dev/null src/distrib/bebox/ramdisk/dot.profile:1.1
--- /dev/null	Sun Oct 17 11:05:18 2010
+++ src/distrib/bebox/ramdisk/dot.profile	Sun Oct 17 11:05:18 2010
@@ -0,0 +1,91 @@
+# $NetBSD: dot.profile,v 1.1 2010/10/17 11:05:18 kiyohara Exp $
+#
+# Copyright (c) 1995 Jason R. Thorpe
+# Copyright (c) 1994 Christopher G. Demetriou
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#          This product includes software developed for the
+#          NetBSD Project.  See http://www.NetBSD.org/ for
+#          information about NetBSD.
+# 4. The name of the author may not be used to endorse or promote products
+#    derived from this software without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 
+# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
+
+PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
+export PATH
+TERM=vt100
+export TERM
+HOME=/
+export HOME
+
+umask 022
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+	DONEPROFILE=YES
+	export DONEPROFILE
+
+	# set up some sane defaults
+	echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T'
+	stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 9600
+
+	# mount root read-write
+	mount -u /dev/md0a /
+
+	# mount a /tmp on mfs, to avoid filling the md
+	mount -t mfs swap /tmp
+
+	# get the terminal type
+	_forceloop=""
+	while [ "X${_forceloop}" = X"" ]; do
+		eval `tset -s -m ":?$TERM"`
+		if [ "X${TERM}" != X"unknown" ]; then
+			_forceloop="done"
+		fi
+	done
+
+	# Installing or upgrading?
+	_forceloop=""
+	while [ "X${_forceloop}" = X"" ]; do
+		echo -n '(I)nstall, (S)hell or (H)alt ? '
+		read _forceloop
+		case "$_forceloop" in
+			i*|I*)
+				/sysinst
+				;;
+
+			s*|S*)
+				/bin/sh
+				;;
+
+			h*|H*)
+				/sbin/halt
+				;;
+
+			*)
+				_forceloop=""
+				;;
+		esac
+	done
+fi
Index: src/distrib/bebox/ramdisk/list
diff -u /dev/null src/distrib/bebox/ramdisk/list:1.1
--- /dev/null	Sun Oct 17 11:05:18 2010
+++ src/distrib/bebox/ramdisk/list	Sun Oct 17 11:05:18 2010
@@ -0,0 +1,75 @@
+#	$NetBSD: list,v 1.1 2010/10/17 11:05:18 kiyohara Exp $
+
+SRCDIRS	bin sbin usr.bin usr.sbin gnu/usr.bin
+
+PROG	bin/cat
+PROG	bin/chmod
+PROG	bin/cp
+PROG	bin/dd
+PROG	bin/df
+PROG	bin/ed
+PROG	bin/ln
+PROG	bin/ls
+PROG	bin/mkdir
+PROG	bin/mv
+PROG	bin/pax		usr/bin/tar
+PROG	bin/pwd
+PROG	bin/rcmd	usr/bin/rsh
+PROG	bin/rcp
+PROG	bin/rm
+PROG	bin/sh
+PROG	bin/stty
+PROG	bin/sync
+
+PROG	sbin/disklabel
+PROG	sbin/dmesg
+PROG	sbin/fdisk
+PROG	sbin/fsck
+PROG	sbin/fsck_ffs
+PROG	sbin/ifconfig
+PROG	sbin/init
+PROG	sbin/mknod
+PROG	sbin/mount
+PROG	sbin/mount_cd9660
+PROG	sbin/mount_ffs
+PROG	sbin/mount_msdos
+PROG	sbin/mount_nfs
+PROG	sbin/newfs	sbin/mount_mfs
+PROG	sbin/ping
+PROG	sbin/reboot	sbin/halt
+PROG	sbin/restore	sbin/rrestore
+PROG	sbin/route
+PROG	sbin/shutdown
+PROG	sbin/umount
+
+PROG	usr/bin/ftp
+PROG	usr/bin/gzip	usr/bin/gzcat usr/bin/gunzip
+PROG	usr/bin/more	usr/bin/less
+PROG	usr/bin/sed
+PROG	usr/bin/tset
+
+PROG	usr/sbin/chown	usr/bin/chgrp
+PROG	usr/sbin/chroot
+
+# init invokes the shell as -sh
+ARGVLN	sh -sh
+
+SPECIAL	gzip		srcdir	distrib/utils/x_gzip
+SPECIAL	ifconfig	srcdir	distrib/utils/x_ifconfig
+SPECIAL	more		srcdir	distrib/utils/more
+SPECIAL	ping		srcdir	distrib/utils/x_ping
+SPECIAL	route		srcdir	distrib/utils/x_route
+SPECIAL	ed		srcdir	distrib/utils/x_ed
+SPECIAL	umount		srcdir	distrib/utils/x_umount
+
+LIBS	libhack.o -ledit -lutil -lcurses -lterminfo -lcrypt -ll -lm -lz -lprop
+
+# various files that we need in /etc for the install
+COPY	${NETBSDSRCDIR}/etc/group		etc/group
+COPY	${NETBSDSRCDIR}/etc/master.passwd	etc/master.passwd
+COPY	${NETBSDSRCDIR}/etc/netconfig		etc/netconfig
+COPY	${DISTRIBDIR}/common/protocols		etc/protocols
+COPY	${DISTRIBDIR}/common/services		etc/services
+
+# and the installation scripts
+COPY	${CURDIR}/dot.profile			.profile

Reply via email to