bootable floppy support for NetBSD/sparc, based on some i386 stuff
This commit is contained in:
parent
dad728f592
commit
5da299f886
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
SUBDIR= ramdisk bootfloppy
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,6 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# REV is revision without dots, as in "12C"
|
||||
# VER is revision with dots, as in "1.2C"
|
||||
REV!=sh ${.CURDIR}/../../../../sys/conf/osrelease.sh -s
|
||||
VER!=sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
|
|
@ -0,0 +1,72 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
.include "${TOP}/Makefile.inc"
|
||||
|
||||
IMAGE= boot${REV}.fs
|
||||
KERN= ${.CURDIR}/../../../../sys/arch/sparc/compile/INSTALL/netbsd
|
||||
|
||||
MOUNT_POINT?= /mnt
|
||||
VND?= vnd0
|
||||
VND_DEV= /dev/${VND}a
|
||||
VND_RDEV= /dev/r${VND}a
|
||||
VND_CDEV= /dev/${VND}c
|
||||
VND_CRDEV= /dev/r${VND}c
|
||||
FD?= fd0
|
||||
FD_RDEV= /dev/r${FD}a
|
||||
IMAGE?= xxx.fs
|
||||
KERN?= netbsd-xxx
|
||||
MDEC= ${DESTDIR}/usr/mdec
|
||||
|
||||
LISTS= ${.CURDIR}/list
|
||||
RAMDISK!= cd $(.CURDIR)/../ramdisk/; \
|
||||
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
|
||||
${MAKE} -s -f-
|
||||
|
||||
DISKTYPE= floppy
|
||||
|
||||
# Some reasonable values for the -i parameter to newfs are:
|
||||
#
|
||||
# 6144 1147k, 189 inodes free
|
||||
# 16384 1159k, 93 inodes free
|
||||
# 204800 1167k, 29 inodes free
|
||||
INO_BYTES?= 204800
|
||||
|
||||
CLEANFILES+= netbsd.ram.gz netbsd.tmp
|
||||
|
||||
all: netbsd.ram.gz
|
||||
dd if=/dev/zero of=${IMAGE} bs=1440k count=1
|
||||
# vnconfig -v -c ${VND_CDEV} ${IMAGE}
|
||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
||||
newfs -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV}
|
||||
mount ${VND_DEV} ${MOUNT_POINT}
|
||||
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
||||
TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
|
||||
@echo ""
|
||||
@df -i ${MOUNT_POINT}
|
||||
@echo ""
|
||||
@echo "installing new bootblocks"
|
||||
-rm -f ${MOUNT_POINT}/boot
|
||||
/usr/mdec/binstall -v ffs ${MOUNT_POINT}
|
||||
umount ${MOUNT_POINT}
|
||||
vnconfig -u ${VND_CDEV}
|
||||
|
||||
unconfig:
|
||||
-umount -f ${MOUNT_POINT}
|
||||
-vnconfig -u ${VND_DEV}
|
||||
|
||||
netbsd.ram.gz: ${KERN} ${RAMDISK}
|
||||
cp ${KERN} netbsd.tmp
|
||||
mdsetimage -v netbsd.tmp ${RAMDISK}
|
||||
gzip netbsd.tmp
|
||||
mv netbsd.tmp.gz ${.TARGET}
|
||||
|
||||
clean cleandir:
|
||||
/bin/rm -f *.core ${IMAGE} ${CLEANFILES}
|
||||
|
||||
real-floppy:
|
||||
dd if=${IMAGE} of=${FD_RDEV} bs=32k
|
||||
|
||||
.include <bsd.obj.mk>
|
|
@ -0,0 +1,4 @@
|
|||
# $NetBSD: list,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# copy the kernel
|
||||
COPY ${OBJDIR}/netbsd.ram.gz netbsd.gz
|
|
@ -0,0 +1,5 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
SUBDIR= ramdisk bootfloppy
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,6 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# REV is revision without dots, as in "12C"
|
||||
# VER is revision with dots, as in "1.2C"
|
||||
REV!=sh ${.CURDIR}/../../../../sys/conf/osrelease.sh -s
|
||||
VER!=sh ${.CURDIR}/../../../../sys/conf/osrelease.sh
|
|
@ -0,0 +1,72 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
.include "${TOP}/Makefile.inc"
|
||||
|
||||
IMAGE= boot${REV}.fs
|
||||
KERN= ${.CURDIR}/../../../../sys/arch/sparc/compile/INSTALL/netbsd
|
||||
|
||||
MOUNT_POINT?= /mnt
|
||||
VND?= vnd0
|
||||
VND_DEV= /dev/${VND}a
|
||||
VND_RDEV= /dev/r${VND}a
|
||||
VND_CDEV= /dev/${VND}c
|
||||
VND_CRDEV= /dev/r${VND}c
|
||||
FD?= fd0
|
||||
FD_RDEV= /dev/r${FD}a
|
||||
IMAGE?= xxx.fs
|
||||
KERN?= netbsd-xxx
|
||||
MDEC= ${DESTDIR}/usr/mdec
|
||||
|
||||
LISTS= ${.CURDIR}/list
|
||||
RAMDISK!= cd $(.CURDIR)/../ramdisk/; \
|
||||
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
|
||||
${MAKE} -s -f-
|
||||
|
||||
DISKTYPE= floppy
|
||||
|
||||
# Some reasonable values for the -i parameter to newfs are:
|
||||
#
|
||||
# 6144 1147k, 189 inodes free
|
||||
# 16384 1159k, 93 inodes free
|
||||
# 204800 1167k, 29 inodes free
|
||||
INO_BYTES?= 204800
|
||||
|
||||
CLEANFILES+= netbsd.ram.gz netbsd.tmp
|
||||
|
||||
all: netbsd.ram.gz
|
||||
dd if=/dev/zero of=${IMAGE} bs=1440k count=1
|
||||
# vnconfig -v -c ${VND_CDEV} ${IMAGE}
|
||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
||||
newfs -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV}
|
||||
mount ${VND_DEV} ${MOUNT_POINT}
|
||||
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
||||
TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
|
||||
@echo ""
|
||||
@df -i ${MOUNT_POINT}
|
||||
@echo ""
|
||||
@echo "installing new bootblocks"
|
||||
-rm -f ${MOUNT_POINT}/boot
|
||||
/usr/mdec/binstall -v ffs ${MOUNT_POINT}
|
||||
umount ${MOUNT_POINT}
|
||||
vnconfig -u ${VND_CDEV}
|
||||
|
||||
unconfig:
|
||||
-umount -f ${MOUNT_POINT}
|
||||
-vnconfig -u ${VND_DEV}
|
||||
|
||||
netbsd.ram.gz: ${KERN} ${RAMDISK}
|
||||
cp ${KERN} netbsd.tmp
|
||||
mdsetimage -v netbsd.tmp ${RAMDISK}
|
||||
gzip netbsd.tmp
|
||||
mv netbsd.tmp.gz ${.TARGET}
|
||||
|
||||
clean cleandir:
|
||||
/bin/rm -f *.core ${IMAGE} ${CLEANFILES}
|
||||
|
||||
real-floppy:
|
||||
dd if=${IMAGE} of=${FD_RDEV} bs=32k
|
||||
|
||||
.include <bsd.obj.mk>
|
|
@ -0,0 +1,4 @@
|
|||
# $NetBSD: list,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# copy the kernel
|
||||
COPY ${OBJDIR}/netbsd.ram.gz netbsd.gz
|
|
@ -0,0 +1,55 @@
|
|||
# $NetBSD: list2sh.awk,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
BEGIN {
|
||||
printf("cd ${CURDIR}\n");
|
||||
printf("\n");
|
||||
}
|
||||
/^$/ || /^#/ {
|
||||
print $0;
|
||||
next;
|
||||
}
|
||||
$1 == "COPY" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("cp %s ${TARGDIR}/%s\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "LINK" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "SYMLINK" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "COPYDIR" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n",
|
||||
$3);
|
||||
printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2,
|
||||
$3);
|
||||
next;
|
||||
}
|
||||
$1 == "SPECIAL" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("(cd ${TARGDIR};");
|
||||
for (i = 2; i <= NF; i++)
|
||||
printf(" %s", $i);
|
||||
printf(")\n");
|
||||
next;
|
||||
}
|
||||
{
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR);
|
||||
printf("exit 1\n");
|
||||
exit 1;
|
||||
}
|
||||
END {
|
||||
printf("\n");
|
||||
printf("exit 0\n");
|
||||
exit 0;
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
.include "${TOP}/Makefile.inc"
|
||||
IMAGE= ramdisk.fs
|
||||
|
||||
CBIN= ramdiskbin
|
||||
|
||||
MOUNT_POINT?= /mnt
|
||||
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
|
||||
VND?= vnd0
|
||||
VND_DEV= /dev/${VND}a
|
||||
VND_RDEV= /dev/r${VND}a
|
||||
VND_CDEV= /dev/${VND}c
|
||||
VND_CRDEV= /dev/r${VND}c
|
||||
IMAGE?= xxx.fs
|
||||
MDEC= ${DESTDIR}/usr/mdec
|
||||
|
||||
LISTS= list
|
||||
CRUNCHCONF= ${CBIN}.conf
|
||||
MTREE= mtree.conf
|
||||
|
||||
SIZE= 1584k
|
||||
DISKTYPE= floppyinstfs
|
||||
GEOM= 512/18/2/88
|
||||
|
||||
all: ${CBIN}
|
||||
dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
|
||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
||||
newfs -m 0 -o space -i 4096 -c 80 ${VND_RDEV}
|
||||
mount ${VND_DEV} ${MOUNT_POINT}
|
||||
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
|
||||
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
||||
TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
|
||||
@echo ""
|
||||
@df -i ${MOUNT_POINT}
|
||||
@echo ""
|
||||
umount ${MOUNT_POINT}
|
||||
vnconfig -u ${VND_CDEV}
|
||||
|
||||
unconfig:
|
||||
-umount -f ${MOUNT_POINT}
|
||||
-vnconfig -u ${VND_DEV}
|
||||
-/bin/rm -f ${IMAGE}
|
||||
|
||||
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
||||
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
|
||||
|
||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
||||
make -f ${CBIN}.mk all
|
||||
|
||||
clean cleandir:
|
||||
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
# $NetBSD: dot.profile,v 1.1.1.1 1998/06/06 05:29:50 mrg 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 by Christopher G. Demetriou.
|
||||
# 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.
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
|
||||
export PATH
|
||||
TERM=sun
|
||||
export TERM
|
||||
HOME=/
|
||||
export HOME
|
||||
|
||||
umask 022
|
||||
|
||||
if [ "X${DONEPROFILE}" = "X" ]; then
|
||||
DONEPROFILE=YES
|
||||
|
||||
# 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
|
||||
|
||||
# run update, so that installed software is written as it goes.
|
||||
update
|
||||
|
||||
# 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
|
|
@ -0,0 +1,87 @@
|
|||
# $NetBSD: list,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# copy the crunched binary, link to it, and kill it
|
||||
COPY ${OBJDIR}/ramdiskbin sysinst
|
||||
LINK ramdiskbin bin/cat
|
||||
LINK ramdiskbin bin/chmod
|
||||
LINK ramdiskbin bin/cp
|
||||
LINK ramdiskbin bin/dd
|
||||
LINK ramdiskbin bin/df
|
||||
LINK ramdiskbin bin/ed
|
||||
LINK ramdiskbin bin/ln
|
||||
LINK ramdiskbin bin/ls
|
||||
LINK ramdiskbin bin/mkdir
|
||||
LINK ramdiskbin bin/mt
|
||||
LINK ramdiskbin bin/mv
|
||||
LINK ramdiskbin bin/pax
|
||||
LINK ramdiskbin bin/rm
|
||||
LINK ramdiskbin bin/rcmd
|
||||
LINK ramdiskbin bin/rcp
|
||||
LINK ramdiskbin bin/sh
|
||||
LINK ramdiskbin bin/stty
|
||||
LINK ramdiskbin bin/sync
|
||||
LINK ramdiskbin bin/test
|
||||
LINK ramdiskbin bin/[
|
||||
LINK ramdiskbin sbin/disklabel
|
||||
LINK ramdiskbin sbin/dmesg
|
||||
LINK ramdiskbin sbin/fsck
|
||||
LINK ramdiskbin sbin/fsck_ffs
|
||||
LINK ramdiskbin sbin/halt
|
||||
LINK ramdiskbin sbin/ifconfig
|
||||
LINK ramdiskbin sbin/init
|
||||
LINK ramdiskbin sbin/mknod
|
||||
LINK ramdiskbin sbin/mount
|
||||
LINK ramdiskbin sbin/mount_cd9660
|
||||
LINK ramdiskbin sbin/mount_ffs
|
||||
LINK ramdiskbin sbin/mount_nfs
|
||||
LINK ramdiskbin sbin/mount_kernfs
|
||||
LINK ramdiskbin sbin/newfs
|
||||
LINK ramdiskbin sbin/ping
|
||||
LINK ramdiskbin sbin/reboot
|
||||
LINK ramdiskbin sbin/restore
|
||||
LINK ramdiskbin sbin/route
|
||||
LINK ramdiskbin sbin/rrestore
|
||||
LINK ramdiskbin sbin/shutdown
|
||||
LINK ramdiskbin sbin/slattach
|
||||
LINK ramdiskbin sbin/umount
|
||||
SYMLINK /bin/cat usr/bin/chgrp
|
||||
SYMLINK /bin/cat usr/bin/ftp
|
||||
SYMLINK /bin/cat usr/bin/gunzip
|
||||
SYMLINK /bin/cat usr/bin/gzcat
|
||||
SYMLINK /bin/cat usr/bin/gzip
|
||||
SYMLINK /bin/cat usr/bin/less
|
||||
SYMLINK /bin/cat usr/bin/more
|
||||
SYMLINK /bin/cat usr/bin/rsh
|
||||
SYMLINK /bin/cat usr/bin/strings
|
||||
SYMLINK /bin/cat usr/bin/sed
|
||||
SYMLINK /bin/cat usr/bin/tar
|
||||
SYMLINK /bin/cat usr/mdec/installboot
|
||||
SYMLINK /bin/cat usr/sbin/chown
|
||||
|
||||
# copy the MAKEDEV script and make some devices
|
||||
COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
|
||||
SPECIAL cd dev; sh MAKEDEV floppy
|
||||
SPECIAL /bin/rm dev/MAKEDEV
|
||||
|
||||
# we need the boot blocks /usr/mdec
|
||||
COPY ${DESTDIR}/usr/mdec/binstall usr/mdec/binstall
|
||||
COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot
|
||||
LINK usr/mdec/boot usr/mdec/boot.net
|
||||
COPY ${DESTDIR}/usr/mdec/bootxx usr/mdec/bootxx
|
||||
|
||||
# and the termcap file
|
||||
COPY ${CURDIR}/termcap.src usr/share/misc/termcap
|
||||
|
||||
# various files that we need in /etc for the install
|
||||
COPY ${DESTDIR}/etc/disktab etc/disktab
|
||||
COPY ${CURDIR}/../../../../etc/group etc/group
|
||||
COPY ${CURDIR}/../../../../etc/master.passwd etc/master.passwd
|
||||
COPY ${CURDIR}/../../../../etc/protocols etc/protocols
|
||||
COPY ${CURDIR}/../../../../etc/services etc/services
|
||||
SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
|
||||
|
||||
# and the installation scripts
|
||||
COPY ${CURDIR}/dot.profile .profile
|
||||
|
||||
# Minimize use of MFS
|
||||
SYMLINK /tmp var/tmp
|
|
@ -0,0 +1,82 @@
|
|||
# $NetBSD: mtree.conf,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
/set type=dir uname=root gname=wheel mode=0755
|
||||
# .
|
||||
.
|
||||
|
||||
# ./bin
|
||||
bin
|
||||
# ./bin
|
||||
..
|
||||
|
||||
# ./dev
|
||||
dev
|
||||
# ./dev
|
||||
..
|
||||
|
||||
# ./etc
|
||||
etc
|
||||
# ./etc
|
||||
..
|
||||
|
||||
# ./mnt
|
||||
mnt
|
||||
# ./mnt
|
||||
..
|
||||
|
||||
# ./mnt2
|
||||
mnt2
|
||||
# ./mnt2
|
||||
..
|
||||
|
||||
# ./kern
|
||||
kern
|
||||
# ./kern
|
||||
..
|
||||
|
||||
# ./sbin
|
||||
sbin
|
||||
# ./sbin
|
||||
..
|
||||
|
||||
# ./tmp
|
||||
tmp mode=01777
|
||||
# ./tmp
|
||||
..
|
||||
|
||||
# ./var
|
||||
var
|
||||
# ./var
|
||||
..
|
||||
|
||||
# ./usr
|
||||
usr
|
||||
|
||||
# ./usr/bin
|
||||
bin
|
||||
# ./usr/bin
|
||||
..
|
||||
|
||||
# ./usr/mdec
|
||||
mdec
|
||||
# ./usr/mdec
|
||||
..
|
||||
|
||||
# ./usr/sbin
|
||||
sbin
|
||||
# ./usr/sbin
|
||||
..
|
||||
|
||||
# ./usr/share
|
||||
share
|
||||
|
||||
# ./usr/share/misc
|
||||
misc
|
||||
# ./usr/share/misc
|
||||
..
|
||||
|
||||
# ./usr/share
|
||||
..
|
||||
|
||||
# ./usr
|
||||
..
|
|
@ -0,0 +1,30 @@
|
|||
# $NetBSD: ramdiskbin.conf,v 1.1.1.1 1998/06/06 05:29:51 mrg Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
|
||||
srcdirs bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin sys/arch/sparc/stand
|
||||
|
||||
progs cat chmod chown chroot cp dd df disklabel dmesg ed
|
||||
progs fsck fsck_ffs ftp gzip ifconfig init installboot less
|
||||
progs ln ls mkdir mknod mount mount_cd9660 mount_ffs
|
||||
progs mount_nfs mt mv newfs pax ping reboot rcmd rcp restore rm
|
||||
progs route sed sh shutdown slattach strings stty sync sysinst test
|
||||
progs tip umount
|
||||
|
||||
special init srcdir distrib/utils/init_s
|
||||
special gzip srcdir distrib/utils/gzip_s
|
||||
special sysinst srcdir distrib/utils/sysinst
|
||||
special sysinst srcdir distrib/utils/sysinst/arch/sparc
|
||||
|
||||
ln chown chgrp
|
||||
ln gzip gzcat gunzip
|
||||
ln sh -sh # init invokes the shell this way
|
||||
ln test [
|
||||
ln mount_cd9660 cd9660
|
||||
ln mount_ffs ffs
|
||||
ln mount_nfs nfs
|
||||
ln reboot halt
|
||||
ln restore rrestore
|
||||
ln rcmd rsh
|
||||
|
||||
libs -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz
|
|
@ -0,0 +1,86 @@
|
|||
adm+sgr|adm style highlight capabilities:\
|
||||
:me=\EG0:mk=\EG1:mr=\EG4:se=\EG0:so=\EG4:ue=\EG0:us=\EG8:
|
||||
dumb|80-column dumb tty:\
|
||||
:am:\
|
||||
:co#80:\
|
||||
:bl=^G:cr=^M:do=^J:sf=^J:
|
||||
unknown|unknown terminal type:\
|
||||
:gn:tc=dumb:
|
||||
lpr|printer|line printer:\
|
||||
:bs:hc:os:\
|
||||
:co#132:li#66:\
|
||||
:bl=^G:cr=^M:do=^J:ff=^L:le=^H:sf=^J:
|
||||
glasstty|classic glass tty interpreting ASCII control characters:\
|
||||
:am:\
|
||||
:co#80:\
|
||||
:bl=^G:cl=^L:cr=^M:do=^J:kb=^H:kd=^J:kl=^H:le=^H:nw=^M^J:\
|
||||
:ta=^I:
|
||||
vt52|dec vt52:\
|
||||
:bs:\
|
||||
:co#80:it#8:li#24:\
|
||||
:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
|
||||
:ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH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=\EW:kI=\EQ:kN=\EK:kP=\EJ:\
|
||||
:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:ll=\E{^K:mb=\EG2:\
|
||||
:me=\E(\EH\003\EG0\EcD:mh=\EGp:nd=^L:nw=\r\n:sf=\n:\
|
||||
:so=\EGt:sr=\Ej:st=\E1:ta=^I:te=\Ew0:ti=\Ew1:ts=\EF:up=^K:\
|
||||
:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
|
||||
:tc=adm+sgr:
|
|
@ -0,0 +1,13 @@
|
|||
# $NetBSD: runlist.sh,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
if [ "X$1" = "X-d" ]; then
|
||||
SHELLCMD=cat
|
||||
shift
|
||||
else
|
||||
SHELLCMD="sh -e"
|
||||
fi
|
||||
|
||||
( while [ "X$1" != "X" ]; do
|
||||
cat $1
|
||||
shift
|
||||
done ) | awk -f ${TOPDIR}/list2sh.awk | ${SHELLCMD}
|
|
@ -0,0 +1,55 @@
|
|||
# $NetBSD: list2sh.awk,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
BEGIN {
|
||||
printf("cd ${CURDIR}\n");
|
||||
printf("\n");
|
||||
}
|
||||
/^$/ || /^#/ {
|
||||
print $0;
|
||||
next;
|
||||
}
|
||||
$1 == "COPY" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("cp %s ${TARGDIR}/%s\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "LINK" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "SYMLINK" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("rm -f ${TARGDIR}/%s\n", $3);
|
||||
printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $3);
|
||||
next;
|
||||
}
|
||||
$1 == "COPYDIR" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n",
|
||||
$3);
|
||||
printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2,
|
||||
$3);
|
||||
next;
|
||||
}
|
||||
$1 == "SPECIAL" {
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("(cd ${TARGDIR};");
|
||||
for (i = 2; i <= NF; i++)
|
||||
printf(" %s", $i);
|
||||
printf(")\n");
|
||||
next;
|
||||
}
|
||||
{
|
||||
printf("echo '%s'\n", $0);
|
||||
printf("echo 'Unknown keyword \"%s\" at line %d of input.'\n", $1, NR);
|
||||
printf("exit 1\n");
|
||||
exit 1;
|
||||
}
|
||||
END {
|
||||
printf("\n");
|
||||
printf("exit 0\n");
|
||||
exit 0;
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
|
||||
.include "${TOP}/Makefile.inc"
|
||||
IMAGE= ramdisk.fs
|
||||
|
||||
CBIN= ramdiskbin
|
||||
|
||||
MOUNT_POINT?= /mnt
|
||||
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
|
||||
VND?= vnd0
|
||||
VND_DEV= /dev/${VND}a
|
||||
VND_RDEV= /dev/r${VND}a
|
||||
VND_CDEV= /dev/${VND}c
|
||||
VND_CRDEV= /dev/r${VND}c
|
||||
IMAGE?= xxx.fs
|
||||
MDEC= ${DESTDIR}/usr/mdec
|
||||
|
||||
LISTS= list
|
||||
CRUNCHCONF= ${CBIN}.conf
|
||||
MTREE= mtree.conf
|
||||
|
||||
SIZE= 1584k
|
||||
DISKTYPE= floppyinstfs
|
||||
GEOM= 512/18/2/88
|
||||
|
||||
all: ${CBIN}
|
||||
dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
|
||||
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
|
||||
disklabel -rw ${VND_CDEV} ${DISKTYPE}
|
||||
newfs -m 0 -o space -i 4096 -c 80 ${VND_RDEV}
|
||||
mount ${VND_DEV} ${MOUNT_POINT}
|
||||
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
|
||||
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
|
||||
TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
|
||||
@echo ""
|
||||
@df -i ${MOUNT_POINT}
|
||||
@echo ""
|
||||
umount ${MOUNT_POINT}
|
||||
vnconfig -u ${VND_CDEV}
|
||||
|
||||
unconfig:
|
||||
-umount -f ${MOUNT_POINT}
|
||||
-vnconfig -u ${VND_DEV}
|
||||
-/bin/rm -f ${IMAGE}
|
||||
|
||||
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
||||
crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
|
||||
|
||||
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
||||
make -f ${CBIN}.mk all
|
||||
|
||||
clean cleandir:
|
||||
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
# $NetBSD: dot.profile,v 1.1.1.1 1998/06/06 05:29:50 mrg 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 by Christopher G. Demetriou.
|
||||
# 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.
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
|
||||
export PATH
|
||||
TERM=sun
|
||||
export TERM
|
||||
HOME=/
|
||||
export HOME
|
||||
|
||||
umask 022
|
||||
|
||||
if [ "X${DONEPROFILE}" = "X" ]; then
|
||||
DONEPROFILE=YES
|
||||
|
||||
# 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
|
||||
|
||||
# run update, so that installed software is written as it goes.
|
||||
update
|
||||
|
||||
# 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
|
|
@ -0,0 +1,87 @@
|
|||
# $NetBSD: list,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
# copy the crunched binary, link to it, and kill it
|
||||
COPY ${OBJDIR}/ramdiskbin sysinst
|
||||
LINK ramdiskbin bin/cat
|
||||
LINK ramdiskbin bin/chmod
|
||||
LINK ramdiskbin bin/cp
|
||||
LINK ramdiskbin bin/dd
|
||||
LINK ramdiskbin bin/df
|
||||
LINK ramdiskbin bin/ed
|
||||
LINK ramdiskbin bin/ln
|
||||
LINK ramdiskbin bin/ls
|
||||
LINK ramdiskbin bin/mkdir
|
||||
LINK ramdiskbin bin/mt
|
||||
LINK ramdiskbin bin/mv
|
||||
LINK ramdiskbin bin/pax
|
||||
LINK ramdiskbin bin/rm
|
||||
LINK ramdiskbin bin/rcmd
|
||||
LINK ramdiskbin bin/rcp
|
||||
LINK ramdiskbin bin/sh
|
||||
LINK ramdiskbin bin/stty
|
||||
LINK ramdiskbin bin/sync
|
||||
LINK ramdiskbin bin/test
|
||||
LINK ramdiskbin bin/[
|
||||
LINK ramdiskbin sbin/disklabel
|
||||
LINK ramdiskbin sbin/dmesg
|
||||
LINK ramdiskbin sbin/fsck
|
||||
LINK ramdiskbin sbin/fsck_ffs
|
||||
LINK ramdiskbin sbin/halt
|
||||
LINK ramdiskbin sbin/ifconfig
|
||||
LINK ramdiskbin sbin/init
|
||||
LINK ramdiskbin sbin/mknod
|
||||
LINK ramdiskbin sbin/mount
|
||||
LINK ramdiskbin sbin/mount_cd9660
|
||||
LINK ramdiskbin sbin/mount_ffs
|
||||
LINK ramdiskbin sbin/mount_nfs
|
||||
LINK ramdiskbin sbin/mount_kernfs
|
||||
LINK ramdiskbin sbin/newfs
|
||||
LINK ramdiskbin sbin/ping
|
||||
LINK ramdiskbin sbin/reboot
|
||||
LINK ramdiskbin sbin/restore
|
||||
LINK ramdiskbin sbin/route
|
||||
LINK ramdiskbin sbin/rrestore
|
||||
LINK ramdiskbin sbin/shutdown
|
||||
LINK ramdiskbin sbin/slattach
|
||||
LINK ramdiskbin sbin/umount
|
||||
SYMLINK /bin/cat usr/bin/chgrp
|
||||
SYMLINK /bin/cat usr/bin/ftp
|
||||
SYMLINK /bin/cat usr/bin/gunzip
|
||||
SYMLINK /bin/cat usr/bin/gzcat
|
||||
SYMLINK /bin/cat usr/bin/gzip
|
||||
SYMLINK /bin/cat usr/bin/less
|
||||
SYMLINK /bin/cat usr/bin/more
|
||||
SYMLINK /bin/cat usr/bin/rsh
|
||||
SYMLINK /bin/cat usr/bin/strings
|
||||
SYMLINK /bin/cat usr/bin/sed
|
||||
SYMLINK /bin/cat usr/bin/tar
|
||||
SYMLINK /bin/cat usr/mdec/installboot
|
||||
SYMLINK /bin/cat usr/sbin/chown
|
||||
|
||||
# copy the MAKEDEV script and make some devices
|
||||
COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
|
||||
SPECIAL cd dev; sh MAKEDEV floppy
|
||||
SPECIAL /bin/rm dev/MAKEDEV
|
||||
|
||||
# we need the boot blocks /usr/mdec
|
||||
COPY ${DESTDIR}/usr/mdec/binstall usr/mdec/binstall
|
||||
COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot
|
||||
LINK usr/mdec/boot usr/mdec/boot.net
|
||||
COPY ${DESTDIR}/usr/mdec/bootxx usr/mdec/bootxx
|
||||
|
||||
# and the termcap file
|
||||
COPY ${CURDIR}/termcap.src usr/share/misc/termcap
|
||||
|
||||
# various files that we need in /etc for the install
|
||||
COPY ${DESTDIR}/etc/disktab etc/disktab
|
||||
COPY ${CURDIR}/../../../../etc/group etc/group
|
||||
COPY ${CURDIR}/../../../../etc/master.passwd etc/master.passwd
|
||||
COPY ${CURDIR}/../../../../etc/protocols etc/protocols
|
||||
COPY ${CURDIR}/../../../../etc/services etc/services
|
||||
SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
|
||||
|
||||
# and the installation scripts
|
||||
COPY ${CURDIR}/dot.profile .profile
|
||||
|
||||
# Minimize use of MFS
|
||||
SYMLINK /tmp var/tmp
|
|
@ -0,0 +1,82 @@
|
|||
# $NetBSD: mtree.conf,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
/set type=dir uname=root gname=wheel mode=0755
|
||||
# .
|
||||
.
|
||||
|
||||
# ./bin
|
||||
bin
|
||||
# ./bin
|
||||
..
|
||||
|
||||
# ./dev
|
||||
dev
|
||||
# ./dev
|
||||
..
|
||||
|
||||
# ./etc
|
||||
etc
|
||||
# ./etc
|
||||
..
|
||||
|
||||
# ./mnt
|
||||
mnt
|
||||
# ./mnt
|
||||
..
|
||||
|
||||
# ./mnt2
|
||||
mnt2
|
||||
# ./mnt2
|
||||
..
|
||||
|
||||
# ./kern
|
||||
kern
|
||||
# ./kern
|
||||
..
|
||||
|
||||
# ./sbin
|
||||
sbin
|
||||
# ./sbin
|
||||
..
|
||||
|
||||
# ./tmp
|
||||
tmp mode=01777
|
||||
# ./tmp
|
||||
..
|
||||
|
||||
# ./var
|
||||
var
|
||||
# ./var
|
||||
..
|
||||
|
||||
# ./usr
|
||||
usr
|
||||
|
||||
# ./usr/bin
|
||||
bin
|
||||
# ./usr/bin
|
||||
..
|
||||
|
||||
# ./usr/mdec
|
||||
mdec
|
||||
# ./usr/mdec
|
||||
..
|
||||
|
||||
# ./usr/sbin
|
||||
sbin
|
||||
# ./usr/sbin
|
||||
..
|
||||
|
||||
# ./usr/share
|
||||
share
|
||||
|
||||
# ./usr/share/misc
|
||||
misc
|
||||
# ./usr/share/misc
|
||||
..
|
||||
|
||||
# ./usr/share
|
||||
..
|
||||
|
||||
# ./usr
|
||||
..
|
|
@ -0,0 +1,30 @@
|
|||
# $NetBSD: ramdiskbin.conf,v 1.1.1.1 1998/06/06 05:29:51 mrg Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
|
||||
srcdirs bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin sys/arch/sparc/stand
|
||||
|
||||
progs cat chmod chown chroot cp dd df disklabel dmesg ed
|
||||
progs fsck fsck_ffs ftp gzip ifconfig init installboot less
|
||||
progs ln ls mkdir mknod mount mount_cd9660 mount_ffs
|
||||
progs mount_nfs mt mv newfs pax ping reboot rcmd rcp restore rm
|
||||
progs route sed sh shutdown slattach strings stty sync sysinst test
|
||||
progs tip umount
|
||||
|
||||
special init srcdir distrib/utils/init_s
|
||||
special gzip srcdir distrib/utils/gzip_s
|
||||
special sysinst srcdir distrib/utils/sysinst
|
||||
special sysinst srcdir distrib/utils/sysinst/arch/sparc
|
||||
|
||||
ln chown chgrp
|
||||
ln gzip gzcat gunzip
|
||||
ln sh -sh # init invokes the shell this way
|
||||
ln test [
|
||||
ln mount_cd9660 cd9660
|
||||
ln mount_ffs ffs
|
||||
ln mount_nfs nfs
|
||||
ln reboot halt
|
||||
ln restore rrestore
|
||||
ln rcmd rsh
|
||||
|
||||
libs -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz
|
|
@ -0,0 +1,86 @@
|
|||
adm+sgr|adm style highlight capabilities:\
|
||||
:me=\EG0:mk=\EG1:mr=\EG4:se=\EG0:so=\EG4:ue=\EG0:us=\EG8:
|
||||
dumb|80-column dumb tty:\
|
||||
:am:\
|
||||
:co#80:\
|
||||
:bl=^G:cr=^M:do=^J:sf=^J:
|
||||
unknown|unknown terminal type:\
|
||||
:gn:tc=dumb:
|
||||
lpr|printer|line printer:\
|
||||
:bs:hc:os:\
|
||||
:co#132:li#66:\
|
||||
:bl=^G:cr=^M:do=^J:ff=^L:le=^H:sf=^J:
|
||||
glasstty|classic glass tty interpreting ASCII control characters:\
|
||||
:am:\
|
||||
:co#80:\
|
||||
:bl=^G:cl=^L:cr=^M:do=^J:kb=^H:kd=^J:kl=^H:le=^H:nw=^M^J:\
|
||||
:ta=^I:
|
||||
vt52|dec vt52:\
|
||||
:bs:\
|
||||
:co#80:it#8:li#24:\
|
||||
:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
|
||||
:ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\
|
||||
:cr=^M:do=\EB:ho=\EH:kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:\
|
||||
:le=\ED:nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:
|
||||
vt100|vt100-am|dec vt100 (w/advanced video):\
|
||||
:am:bs:ms:xn:xo:\
|
||||
:co#80:it#8:li#24:vt#3:\
|
||||
:@8=\EOM:DO=\E[%dB:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:\
|
||||
:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
|
||||
:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
|
||||
:ae=^O:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
|
||||
:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr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
:so=\EGt:sr=\Ej:st=\E1:ta=\011:te=\Ew1:ti=\Ew0:ts=\EF:up=^K:\
|
||||
:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
|
||||
:tc=adm+sgr:
|
||||
wy160|wyse160|Wyse 160:\
|
||||
:am:bw:hs:km:mi:ms:\
|
||||
:co#80:li#24:ws#38:\
|
||||
:ae=\EcD:al=\EE:as=\EcE:bl=^G:bt=\EI:cd=\EY:ce=\ET:cl=\E+:\
|
||||
:cm=\E=%+ %+ :cr=^M:ct=\E0:dc=\EW:dl=\ER:do=^J:ds=\EF\r:\
|
||||
:ei=\Er:fs=^M:ho=\E{:i1=\EcB0\EcC1:i2=\Ew0:im=\Eq:ip=:\
|
||||
:is=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El:\
|
||||
:k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
|
||||
:k7=^AF\r:k8=^AG\r:k9=^AH\r:kD=\EW:kI=\EQ:kN=\EK:kP=\EJ:\
|
||||
:kb=^H:kd=^J:kh=^^:kl=^H:kr=^L:ku=^K:le=^H:ll=\E{^K:mb=\EG2:\
|
||||
:me=\E(\EH\003\EG0\EcD:mh=\EGp:nd=^L:nw=\r\n:sf=\n:\
|
||||
:so=\EGt:sr=\Ej:st=\E1:ta=^I:te=\Ew0:ti=\Ew1:ts=\EF:up=^K:\
|
||||
:vb=\E`8\E`9:ve=\E`1:vi=\E`0:\
|
||||
:tc=adm+sgr:
|
|
@ -0,0 +1,13 @@
|
|||
# $NetBSD: runlist.sh,v 1.1.1.1 1998/06/06 05:29:50 mrg Exp $
|
||||
|
||||
if [ "X$1" = "X-d" ]; then
|
||||
SHELLCMD=cat
|
||||
shift
|
||||
else
|
||||
SHELLCMD="sh -e"
|
||||
fi
|
||||
|
||||
( while [ "X$1" != "X" ]; do
|
||||
cat $1
|
||||
shift
|
||||
done ) | awk -f ${TOPDIR}/list2sh.awk | ${SHELLCMD}
|
Loading…
Reference in New Issue