diff --git a/src/etc/Makefile b/src/etc/Makefile index f94859e4..c6af883b 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.57 1997/05/16 18:02:22 deraadt Exp $ +# $OpenBSD: Makefile,v 1.58 1997/05/18 13:42:36 pefo Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -45,7 +45,7 @@ GZIPEXT= all clean cleandir depend etc install lint: .ifndef DESTDIR -distribution-etc-root-var distribution distrib-dirs snapshot: +distribution-etc-root-var distribution distrib-dirs release snapshot: @echo setenv DESTDIR before doing that! @false .else @@ -154,6 +154,10 @@ distribution-etc-root-var: distrib-dirs .if (${MACHINE_ARCH} == "mips") (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ld.so.conf ${DESTDIR}/etc) +.endif +.if ${MACHINE} == "arc" + (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + mbr msdos5mb.gz ${DESTDIR}/usr/mdec) .endif (cd ${DESTDIR}/dev; ./MAKEDEV all) .if ${MACHINE} == "vax" diff --git a/src/etc/etc.arc/MAKEDEV b/src/etc/etc.arc/MAKEDEV index addf9ce2..0b35eb3b 100644 --- a/src/etc/etc.arc/MAKEDEV +++ b/src/etc/etc.arc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.17 1997/05/14 18:31:15 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.18 1997/05/18 13:42:37 pefo Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -73,6 +73,11 @@ all) sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local ;; +ramdisk) + sh MAKEDEV std fd0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 st0 acd0 cd0 + sh MAKEDEV tty00 tty01 ttyC0 lpt0 random rd0 + ;; + std) mknod console c 0 0 mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum @@ -160,7 +165,17 @@ bpf*|tun*) chown root.wheel $name$unit ;; -# ;; +rd*) + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + mknod rd${unit}a b 8 `expr $unit '*' 16 + 0` + mknod rd${unit}c b 8 `expr $unit '*' 16 + 2` + mknod rrd${unit}a c 22 `expr $unit '*' 16 + 0` + mknod rrd${unit}c c 22 `expr $unit '*' 16 + 2` + chown root.operator rd${unit}[ac] rrd${unit}[ac] + chmod 640 rd${unit}[ac] rrd${unit}[ac] + umask 77 + ;; + #lkm) # rm -f lkm # mknod lkm c 112 0 diff --git a/src/etc/etc.arc/Makefile.inc b/src/etc/etc.arc/Makefile.inc index 19b45e91..39bd6700 100644 --- a/src/etc/etc.arc/Makefile.inc +++ b/src/etc/etc.arc/Makefile.inc @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.2 1997/02/09 08:50:15 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 1997/05/18 13:42:37 pefo Exp $ # # etc.arc/Makefile.inc -- arc-specific etc Makefile targets .ifdef DESTDIR -snap_md: binutils bsd +snap_md: binutils bsd ramdisk binutils: cd ${DESTDIR} && tar cf - usr/*openbsd* \ @@ -19,4 +19,8 @@ bsd: cp ${.CURDIR}/../sys/arch/arc/compile/GENERIC/bsd.ecoff \ ${DESTDIR}/snapshot/bsd.ecoff +ramdisk: + cd ${.CURDIR}/../distrib/arc/ramdisk && make cleandir && \ + make && make install + .endif diff --git a/src/etc/etc.arc/disktab b/src/etc/etc.arc/disktab index dedb9a90..1d6d5701 100644 --- a/src/etc/etc.arc/disktab +++ b/src/etc/etc.arc/disktab @@ -29,9 +29,9 @@ # rdroot|ramdiskroot|RAM-disk root FS image:\ - :ty=simulated:se#512:nc#16:nt#2:ns#128:\ - :ta=4.2BSD:oa#0:pa#4046:fa#512:ba#4096:\ - :ob#0:pb#0:oc#0:pc#4096: + :ty=simulated:se#512:nc#20:nt#5:ns#200:\ + :ta=4.2BSD:oa#0:pa#20000:fa#1024:ba#4096:\ + :ob#0:pb#0:oc#0:pc#20000: # Seagate ST31200N ST31200N-MBR:\ diff --git a/src/etc/etc.arc/mbr b/src/etc/etc.arc/mbr new file mode 100644 index 00000000..5c3d71a2 Binary files /dev/null and b/src/etc/etc.arc/mbr differ diff --git a/src/etc/etc.arc/msdos5mb.gz b/src/etc/etc.arc/msdos5mb.gz new file mode 100644 index 00000000..6508b105 Binary files /dev/null and b/src/etc/etc.arc/msdos5mb.gz differ