diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /etc/etc.i386 |
initial import of NetBSD tree
Diffstat (limited to 'etc/etc.i386')
-rw-r--r-- | etc/etc.i386/MAKEDEV | 348 | ||||
-rw-r--r-- | etc/etc.i386/Makefile.inc | 38 | ||||
-rw-r--r-- | etc/etc.i386/Makefile.kc | 52 | ||||
-rw-r--r-- | etc/etc.i386/disktab | 119 | ||||
-rw-r--r-- | etc/etc.i386/files.kc/copy_kernel | 113 | ||||
-rw-r--r-- | etc/etc.i386/files.kc/dot.profile | 8 | ||||
-rw-r--r-- | etc/etc.i386/files.kc/list | 2 | ||||
-rw-r--r-- | etc/etc.i386/fstab.wd | 3 | ||||
-rw-r--r-- | etc/etc.i386/ttys | 48 |
9 files changed, 731 insertions, 0 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV new file mode 100644 index 00000000000..60f88b015dd --- /dev/null +++ b/etc/etc.i386/MAKEDEV @@ -0,0 +1,348 @@ +#!/bin/sh - +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# +# Device "make" file. Valid arguments: +# all makes all known devices, including local devices. +# Tries to make the 'standard' number of each type. +# floppy devices to be put on install floppies +# std standard devices +# local configuration specific devices +# +# Tapes: +# wt* QIC-interfaced (e.g. not SCSI) 3M cartridge tape +# st* SCSI tapes +# +# Disks: +# wd* "winchester" disk drives (ST506,IDE,ESDI,RLL,...) +# fd* "floppy" disk drives (3 1/2", 5 1/4") +# sd* SCSI disks +# cd* SCSI CD-ROM +# mcd* Mitsumi CD-ROM +# vnd* "file" pseudo-disks +# ccd* contatenated disk devices +# +# Console ports: +# ttyv0 pccons or pcvt screen 0 +# ttyv* pcvt +# +# Pointing devices: +# mms* Microsoft bus mouse +# lms* Logitech bus mouse +# pms* PS/2 mouse +# mouse-* "mouse link" (XXX) +# +# Terminal ports: +# com* standard PC COM ports (XXX) +# tty* alias for PC COM ports, this is what the system really wants +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# lpt* stock lp +# lpa* interruptless lp +# +# Call units: +# +# Special purpose devices: +# fd file descriptors +# bpf* packet filter +# speaker pc speaker (XXX - installed) +# lkm loadable kernel modules interface +# audio audio device +# tun* network tunnel driver +# + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +umask 77 +for i +do +case $i in + +all) + sh MAKEDEV std fd wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1 pty0 pty1 + sh MAKEDEV st0 st1 ch0 cd0 cd1 mcd0 vnd0 vnd1 lpa0 lpa1 + sh MAKEDEV ccd0 ccd1 ccd2 ccd3 + sh MAKEDEV lpt0 lpt1 lpt2 ttyv0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 + sh MAKEDEV speaker lkm mms0 lms0 pms0 audio local +# MISSING: +# sh MAKEDEV mouse-? + ;; + +floppy) + sh MAKEDEV std wt0 fd0 fd1 wd0 wd1 sd0 sd1 sd2 tty0 tty1 + sh MAKEDEV st0 st1 cd0 cd1 mcd0 ttyv0 + ;; + +std) + rm -f console drum mem kmem null zero io tty klog stdin stdout stderr + mknod console c 0 0 + mknod drum c 4 0 ; chmod 640 drum ; chgrp kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem + mknod null c 2 2 ; chmod 666 null + mknod zero c 2 12 ; chmod 666 zero + mknod io c 2 14 ; chmod 640 io ; chgrp kmem io + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 7 0 ; chmod 600 klog + mknod stdin c 22 0 ; chmod 666 stdin + mknod stdout c 22 1 ; chmod 666 stdout + mknod stderr c 22 2 ; chmod 666 stderr + ;; + +ttyv*) + unit=`expr $i : 'ttyv\(.*\)'` + rm -f ttyv$unit + mknod ttyv$unit c 12 $unit + chown root.wheel ttyv$unit + case $unit in + 0) + rm -f vga + ln -s ttyv0 vga + ;; + esac + ;; + +fd) + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 22 %d;", i, i)}'`) + chown -R bin.bin fd + chmod 555 fd + chmod 666 fd/* + ;; + +wt*) + umask 2 + rm -f wt0 rwt0 + mknod wt0 b 3 0; chown root.operator wt0 + mknod rwt0 c 10 0; chown root.operator rwt0 + umask 77 + ;; + +ccd*|fd*|sd*|vnd*|wd*) + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + case $i in + ccd*) name=ccd; blk=16; chr=18;; + fd*) name=fd; blk=2; chr=9;; + sd*) name=sd; blk=4; chr=13;; + vnd*) name=vnd; blk=14; chr=41;; + wd*) name=wd; blk=0; chr=3;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0` + mknod ${name}${unit}b b $blk `expr $unit '*' 8 + 1` + mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2` + mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3` + mknod ${name}${unit}e b $blk `expr $unit '*' 8 + 4` + mknod ${name}${unit}f b $blk `expr $unit '*' 8 + 5` + mknod ${name}${unit}g b $blk `expr $unit '*' 8 + 6` + mknod ${name}${unit}h b $blk `expr $unit '*' 8 + 7` + mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0` + mknod r${name}${unit}b c $chr `expr $unit '*' 8 + 1` + mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2` + mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3` + mknod r${name}${unit}e c $chr `expr $unit '*' 8 + 4` + mknod r${name}${unit}f c $chr `expr $unit '*' 8 + 5` + mknod r${name}${unit}g c $chr `expr $unit '*' 8 + 6` + mknod r${name}${unit}h c $chr `expr $unit '*' 8 + 7` + chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + umask 77 + ;; + +com*|tty*) # (XXX -- com should die) + unit=`expr $i : '...\(.*\)'` + rm -f com$unit tty0$unit + mknod tty0$unit c 8 $unit + chown uucp.wheel tty0$unit + ;; + +pty*) + class=`expr $i : 'pty\(.*\)'` + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; +# Note that telnetd, rlogind, and xterm (at least) only look at p-s. + 4) offset=64 name=t;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("rm -f tty%s%x; mknod tty%s%x c 5 %d; \ + rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \ + n, i, n, i, b+i, n, i, n, i, b+i); }'` + umask 77 + ;; + esac + ;; + +st*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + st*) name=st; chr=14; blk=5;; + esac + rm -f $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + mknod ${name}${unit} b $blk `expr $unit '*' 16 + 0` + mknod n${name}${unit} b $blk `expr $unit '*' 16 + 1` + mknod e${name}${unit} b $blk `expr $unit '*' 16 + 2` + mknod en${name}${unit} b $blk `expr $unit '*' 16 + 3` + mknod r${name}${unit} c $chr `expr $unit '*' 16 + 0` + mknod nr${name}${unit} c $chr `expr $unit '*' 16 + 1` + mknod er${name}${unit} c $chr `expr $unit '*' 16 + 2` + mknod enr${name}${unit} c $chr `expr $unit '*' 16 + 3` + chgrp operator ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + chmod 640 ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + umask 77 + ;; + +ch*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + ch*) name=ch; chr=17;; + esac + rm -f $name$unit + mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0` + chgrp operator ${name}${unit} + chmod 640 ${name}${unit} + umask 77 + ;; + +cd*|mcd*) + umask 2 ; unit=`expr $i : '.*cd\(.*\)'` + case $i in + cd*) name=cd; blk=6; chr=15;; + mcd*) name=mcd; blk=7; chr=39;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0` + mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3` + mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0` + mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3` + chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + umask 77 + ;; + +lpa*) + unit=`expr $i : 'lpa\(.*\)'` + rm -f lpa$unit + mknod lpa$unit c 16 `expr $unit + 128` + chown root.wheel lpa$unit + ;; + +lpt*) + unit=`expr $i : 'lpt\(.*\)'` + rm -f lpt$unit + mknod lpt$unit c 16 $unit + chown root.wheel lpt$unit + ;; + +bpf*) + unit=`expr $i : 'bpf\(.*\)'` + rm -f bpf$unit + mknod bpf$unit c 23 $unit + chown root.wheel bpf$unit + ;; + +tun*) + unit=`expr $i : 'tun\(.*\)'` + rm -f tun$unit + mknod tun$unit c 40 $unit + chmod 600 tun$unit + chown root.wheel tun$unit + ;; + +speaker) # (XXX - installed) + rm -f speaker + mknod speaker c 27 0 + chown root.wheel speaker + ;; + +lkm) + rm -f lkm + mknod lkm c 28 0 + chown root.kmem lkm + chmod 640 lkm + ;; + +mms*) + unit=`expr $i : 'mms\(.*\)'` + rm -f mms$unit + mknod mms$unit c 35 $unit + chown root.wheel mms$unit + ;; + +lms*) + unit=`expr $i : 'lms\(.*\)'` + rm -f lms$unit + mknod lms$unit c 36 $unit + chown root.wheel lms$unit + ;; + +pms*) + unit=`expr $i : 'pms\(.*\)'` + rm -f pms$unit + mknod pms$unit c 37 $unit + chown root.wheel pms$unit + ;; + +mouse*) # (XXX) + name=`expr $i : 'mouse-\(.*\)'` + if [ ! -c $name ]; then + $0 $name # make the appropriate device + fi + rm -f mouse + ln -s $name mouse + ;; + +audio*) + rm -f audio sound mixer + mknod sound c 42 0 + mknod audio c 42 128 + mknod mixer c 42 16 + chown root.wheel audio sound mixer + chmod 666 audio sound mixer + ;; + +local) + umask 0 + sh MAKEDEV.local + ;; + +esac +done diff --git a/etc/etc.i386/Makefile.inc b/etc/etc.i386/Makefile.inc new file mode 100644 index 00000000000..8f735db0833 --- /dev/null +++ b/etc/etc.i386/Makefile.inc @@ -0,0 +1,38 @@ +# +# etc.i386/Makefile.inc -- i386-specific etc Makefile targets +# +# $Id: Makefile.inc,v 1.1 1995/10/18 08:38:00 deraadt Exp $ + +.ifdef DESTDIR +snap_md: netbsd-aha netbsd-bt +#snap_md: kc_aha.fs kc_bt.fs + +netbsd-aha: + cd ${.CURDIR}/../sys/arch/i386/conf && config GENERICAHA + cd ${.CURDIR}/../sys/arch/i386/compile/GENERICAHA && \ + make clean && make depend && make + cp ${.CURDIR}/../sys/arch/i386/compile/GENERICAHA/netbsd \ + ${DESTDIR}/snapshot/netbsd-aha + +netbsd-bt: + cd ${.CURDIR}/../sys/arch/i386/conf && config GENERICBT + cd ${.CURDIR}/../sys/arch/i386/compile/GENERICBT && \ + make clean && make depend && make + cp ${.CURDIR}/../sys/arch/i386/compile/GENERICBT/netbsd \ + ${DESTDIR}/snapshot/netbsd-bt + +kc_aha.fs: + make -f ${.CURDIR}/etc.i386/Makefile.kc \ + IMAGE=${DESTDIR}/snapshot/kc_aha.fs \ + KERNEL=${DESTDIR}/snapshot/netbsd-aha || \ + make -f ${.CURDIR}/etc.i386/Makefile.kc \ + IMAGE=${DESTDIR}/snapshot/kc_aha.fs unconfig + +kc_bt.fs: + make -f ${.CURDIR}/etc.i386/Makefile.kc \ + IMAGE=${DESTDIR}/snapshot/kc_bt.fs \ + KERNEL=${DESTDIR}/snapshot/netbsd-bt || \ + make -f ${.CURDIR}/etc.i386/Makefile.kc \ + IMAGE=${DESTDIR}/snapshot/kc_bt.fs unconfig + +.endif # DESTDIR check diff --git a/etc/etc.i386/Makefile.kc b/etc/etc.i386/Makefile.kc new file mode 100644 index 00000000000..6d7e5bfb908 --- /dev/null +++ b/etc/etc.i386/Makefile.kc @@ -0,0 +1,52 @@ +# $Id: Makefile.kc,v 1.1 1995/10/18 08:38:00 deraadt Exp $ + +.ifndef MOUNT_POINT +MOUNT_POINT= /mnt +.endif +.if !defined(VND_DEV) || !defined(VND_DEV) +VND_DEV= /dev/vnd0a +VND_RDEV= /dev/rvnd0a +.endif + +ROOTDIRLIST= / /bin /dev /instbin /mnt /sbin /usr +BINDIRLIST= /usr/bin +FLOPPYBINS= fsck init mount reboot sh tar test umount + +all: +.if !defined(IMAGE) || !defined(KERNEL) + @echo both IMAGE and KERNEL must be defined + @false +.else + dd if=/dev/zero of=${IMAGE} bs=100k count=12 + vnconfig -c ${VND_DEV} ${IMAGE} + disklabel -r -w ${VND_DEV} floppy5 \ + ${DESTDIR}/usr/mdec/fdboot ${DESTDIR}/usr/mdec/bootfd + newfs -m 0 -o space -i 6144 -c 80 ${VND_DEV} floppy5 + mount ${VND_DEV} ${MOUNT_POINT} + for d in ${ROOTDIRLIST} ; do \ + install -d -o root -g wheel -m 755 ${MOUNT_POINT}$$d ; \ + done + for d in ${BINDIRLIST} ; do \ + install -d -o ${BINOWN} -g ${BINGRP} -m 755 ${MOUNT_POINT}$$d ; \ + done + cp ${KERNEL} ${MOUNT_POINT} + cp ${.CURDIR}/etc.i386/MAKEDEV ${MOUNT_POINT}/dev + (cd ${MOUNT_POINT}/dev; sh MAKEDEV floppy) + for b in ${FLOPPYBINS} ; do \ + ( cd ${.CURDIR}/../sys/arch/i386/floppy/$$b ; \ + make DESTDIR=${MOUNT_POINT} install ) ; \ + done + set -- `grep -v '^#' ${.CURDIR}/etc.i386/files.kc/list`; \ + while [ $$# -ge 2 ]; do \ + from=$$1; shift; \ + to=$$1; shift; \ + cp ${.CURDIR}/etc.i386/files.kc/$$from ${MOUNT_POINT}/$$to; \ + done + umount ${MOUNT_POINT} + vnconfig -u ${VND_DEV} ${IMAGE} +.endif + +unconfig: + -umount -f ${MOUNT_POINT} + -vnconfig -u ${VND_DEV} ${IMAGE} + -/bin/rm -f ${IMAGE} diff --git a/etc/etc.i386/disktab b/etc/etc.i386/disktab new file mode 100644 index 00000000000..44d0a970abf --- /dev/null +++ b/etc/etc.i386/disktab @@ -0,0 +1,119 @@ +# Disk geometry and partition layout tables. +# Key: +# dt controller type +# ty type of disk (fixed, removeable, simulated) +# d[0-4] drive-type-dependent parameters +# ns #sectors/track +# nt #tracks/cylinder +# nc #cylinders/disk +# sc #sectors/cylinder, ns*nt default +# su #sectors/unit, sc*nc default +# se sector size, DEV_BSIZE default +# rm rpm, 3600 default +# sf supports bad144-style bad sector forwarding +# sk sector skew per track, default 0 +# cs sector skew per cylinder, default 0 +# hs headswitch time, default 0 +# ts one-cylinder seek time, default 0 +# il sector interleave (n:1), 1 default +# bs boot block size, default BBSIZE +# sb superblock size, default SBSIZE +# o[a-h] partition offsets in sectors +# p[a-h] partition sizes in sectors +# b[a-h] partition block sizes in bytes +# f[a-h] partition fragment sizes in bytes +# t[a-h] partition types (filesystem, swap, etc) +# +# All partition sizes reserve space for bad sector tables. +# (5 cylinders needed for maintenance + replacement sectors) +# +qp120at|Quantum Peripherals 120MB IDE:\ + :dt=ESDI:ty=winchester:se#512:nt#9:ns#32:nc#813:sf: \ + :pa#13824:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#13824:ob#13824:tb=swap: \ + :pc#234144:oc#0: \ + :ph#206496:oh#27648:th=4.2BSD:bh#4096:fh#512: + +pan60|Panasonic Laptop's 60MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#13:ns#17:nc#565:\ + :pa#13260:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#13260:ob#13260:tb=swap: \ + :pc#124865:oc#0: \ + :ph#97682:oh#26520:th=4.2BSD:bh#4096:fh#512: + +mk156|toshiba156|Toshiba MK156 156Mb:\ + :dt=SCSI:ty=winchester:se#512:nt#10:ns#35:nc#825:\ + :pa#15748:oa#0:ba#4096:fa#512:ta=4.2BSD:\ + :pb#15748:ob#15748:tb=swap:\ + :pc#288750:oc#0:\ + :ph#257250:oh#31500:bh#4096:fh#512:th=4.2BSD: + +cp3100|Conner Peripherals 100MB IDE:\ + :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \ + :pa#12144:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#12144:ob#12144:tb=swap: \ + :pc#202224:oc#0: \ + :ph#177936:oh#24288:th=4.2BSD:bh#4096:fh#512: + +# a == root +# b == swap +# c == d == whole disk +# e == /var +# f == scratch +# h == /usr + +cp3100new|Conner Peripherals 100MB IDE, with a different configuration:\ + :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \ + :pa#15840:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#24288:ob#15840:tb=swap: \ + :pc#202224:oc#0: \ + :pd#202224:od#0: \ + :pe#15840:oe#40128:te=4.2BSD:be#4096:fe#512: \ + :pg#15840:og#55968:tg=4.2BSD:bg#4096:fg#512: \ + :ph#130416:oh#71808:th=4.2BSD:bh#4096:fh#512: + +floppy|floppy3|3in|3.5in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\ + :pa#2880:oa#0:ba#4096:fa#512:\ + :pb#2880:ob#0:\ + :pc#2880:oc#0: + +floppy5|5in|5.25in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#15:nc#80:\ + :pa#2400:oa#0:ba#4096:fa#512:\ + :pb#2400:ob#0:bb#4096:fb#512:\ + :pc#2400:oc#0:bc#4096:fc#512: + +maxtor4380|Maxtor XT4380E ESDI :\ + :dt=ESDI:ty=winchester:se#512:nt#15:ns#36:nc#1222:sf: \ + :pa#21600:oa#0:ta=4.2BSD:ba#4096:fa#512:\ + :pb#21600:ob#21600:tb=swap: \ + :pc#659880:oc#0: \ + :pd#216000:od#53200:td=4.2BSD:bd#4096:fd#512: \ + :ph#398520:oh#269200:th=4.2BSD:bh#4096:fh#512: + +miniscribe9380|compaq38|Miniscribe 9380 ESDI :\ + :ty=winchester:dt=ESDI:se#512:nt#15:ns#35:nc#1223:rm#3600:sf: \ + :pa#21000:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#42000:ob#21000:tb=swap: \ + :pc#642075:oc#0: \ + :pd#21000:od#63000:bd#8192:fd#1024:td=4.2BSD: \ + :ph#556500:oh#84000:bh#8192:fh#1024:th=4.2BSD: + +ida4|compaq88|Compaq IDA (4 drives) :\ + :ty=winchester:dt=IDA:se#512:nt#16:ns#63:nc#1644:rm#3600:\ + :pa#20160:oa#0:ba#8192:fa#1024:ta=4.2BSD: \ + :pb#80640:ob#20160:tb=swap: \ + :pc#1659168:oc#0: \ + :pd#201600:od#100800:bd#8192:fd#1024:td=4.2BSD: \ + :pe#20160:oe#1310400:be#8192:fe#1024:te=4.2BSD: \ + :ph#1008000:oh#302400:bh#8192:fh#1024:th=4.2BSD: \ + :pg#302400:og#1330560:bg#4096:fg#512:tg=4.2BSD: + +fuji513|Fujitsu M22XXXX: \ + :ty=winchester:dt=ESDI:se#512:nt#16:ns#63:nc#954:rm#3600:\ + :pa#20160:oa#82656:ba#4096:fa#512:ta=4.2BSD: \ + :pb#40320:ob#102816:tb=swap: \ + :pc#961632:oc#0: \ + :ph#656208:oh#143136:bh#4096:fh#512:th=4.2BSD: + diff --git a/etc/etc.i386/files.kc/copy_kernel b/etc/etc.i386/files.kc/copy_kernel new file mode 100644 index 00000000000..d4d0d015e67 --- /dev/null +++ b/etc/etc.i386/files.kc/copy_kernel @@ -0,0 +1,113 @@ +# $Id: copy_kernel,v 1.1 1995/10/18 08:38:00 deraadt Exp $ +# +# Kernel copy script + +DEFAULT_PARTITON=sd0a +MOUNT_POINT=/mnt +KERNEL_NAME=/netbsd +#TEST=testfn + +testfn() { + echo $* + sleep 5 +} + +cancel() { + echo "" + echo "Copy cancelled." + exit 1 +} + +umountfs() { + echo "Unmounting filesystem; please wait." + trap 2 3 + ${TEST} umount ${MOUNT_POINT} + case $? in + 0) + ;; + *) + echo "Warning: Unmount of ${MOUNT_POINT} failed." + ;; + esac +} + +warning() { + echo "" + echo "Copy failed or was interrupted." + echo "Warning: Copied kernel my be corrupted!" +} + +trap "cancel;" 2 3 +echo "NetBSD kernel copy program" +echo "" +echo "Default answers are displayed in brackets. You may hit Control-C" +echo "at any time to cancel this operation (though if you hit Control-C at" +echo "a prompt, you need to hit return for it to be noticed)." + +echo "" +echo "What disk partition should the kernel be installed on?" +echo "(For example, \"sd0a\", \"wd0a\", etc.)" +echo "" +echo -n "Partition? [${DEFAULT_PARTITON}] " +read diskpart +if [ "X${diskpart}" = "X" ]; then + diskpart=${DEFAULT_PARTITON} +fi +rawdiskpart="r${diskpart}" + +echo "" +echo -n "Are you sure you want to copy a new kernel to ${diskpart}? [n] " +read reply +case ${reply} in +y*|Y*) + ;; +*) + cancel + ;; +esac + +echo "" +echo "Checking ${diskpart} partition; please wait." +${TEST} fsck -p "/dev/${rawdiskpart}" +case $? in +0) + ;; +*) + echo "File system check failed or aborted!" + cancel + ;; +esac + +echo "Mounting /dev/${diskpart} on ${MOUNT_POINT}." +trap "echo ''; umountfs; cancel;" 2 3 +${TEST} mount "/dev/${diskpart}" ${MOUNT_POINT} +case $? in +0) + ;; +*) + echo "Mount failed!" + cancel + ;; +esac + +echo "Copying kernel to ${MOUNT_POINT}." +trap "warning; umountfs; cancel;" 2 3 +${TEST} cp ${KERNEL_NAME} ${MOUNT_POINT} +case $? in +0) + ;; +*) + warning + umountfs + cancel + ;; +esac + +umountfs + +echo "" +echo "Copy completed." +echo "" +echo "Use \"halt\" to halt the system, then (when the system is halted)" +echo "eject the floppy disk and hit any key to reboot from the hard disk." +exit 0 diff --git a/etc/etc.i386/files.kc/dot.profile b/etc/etc.i386/files.kc/dot.profile new file mode 100644 index 00000000000..1593391dc15 --- /dev/null +++ b/etc/etc.i386/files.kc/dot.profile @@ -0,0 +1,8 @@ +# $Id: dot.profile,v 1.1 1995/10/18 08:38:00 deraadt Exp $ + +PATH=/sbin:/bin:/instbin +export PATH + +echo "Enter 'copy_kernel' at the prompt to copy a kernel to your hard disk," +echo "'reboot' to reboot the system, or 'halt' to halt the system." +echo "" diff --git a/etc/etc.i386/files.kc/list b/etc/etc.i386/files.kc/list new file mode 100644 index 00000000000..2f6458a1992 --- /dev/null +++ b/etc/etc.i386/files.kc/list @@ -0,0 +1,2 @@ +dot.profile .profile +copy_kernel instbin/copy_kernel diff --git a/etc/etc.i386/fstab.wd b/etc/etc.i386/fstab.wd new file mode 100644 index 00000000000..5f4355b2717 --- /dev/null +++ b/etc/etc.i386/fstab.wd @@ -0,0 +1,3 @@ +/dev/wd0a / ffs rw 1 1 +#/dev/wd0d /var ffs rw 1 2 +#/dev/wd0h /usr ffs rw 1 3 diff --git a/etc/etc.i386/ttys b/etc/etc.i386/ttys new file mode 100644 index 00000000000..cbde9e1474a --- /dev/null +++ b/etc/etc.i386/ttys @@ -0,0 +1,48 @@ +# +# from: @(#)ttys 5.1 (Berkeley) 4/17/89 +# $Id: ttys,v 1.1 1995/10/18 08:38:00 deraadt Exp $ +# +# name getty type status comments +# +console "/usr/libexec/getty Pc" pc3 off secure +ttyv0 "/usr/libexec/getty Pc" pc3 on secure +tty00 "/usr/libexec/getty std.9600" unknown off secure +tty01 "/usr/libexec/getty std.9600" unknown off secure +tty02 "/usr/libexec/getty std.9600" unknown off secure +tty03 "/usr/libexec/getty std.9600" unknown off secure +tty04 "/usr/libexec/getty std.9600" unknown off secure +tty05 "/usr/libexec/getty std.9600" unknown off secure +tty06 "/usr/libexec/getty std.9600" unknown off secure +tty07 "/usr/libexec/getty std.9600" unknown off secure +ttyp0 none network +ttyp1 none network +ttyp2 none network +ttyp3 none network +ttyp4 none network +ttyp5 none network +ttyp6 none network +ttyp7 none network +ttyp8 none network +ttyp9 none network +ttypa none network +ttypb none network +ttypc none network +ttypd none network +ttype none network +ttypf none network +ttyq0 none network +ttyq1 none network +ttyq2 none network +ttyq3 none network +ttyq4 none network +ttyq5 none network +ttyq6 none network +ttyq7 none network +ttyq8 none network +ttyq9 none network +ttyqa none network +ttyqb none network +ttyqc none network +ttyqd none network +ttyqe none network +ttyqf none network |