diff options
43 files changed, 0 insertions, 3490 deletions
diff --git a/distrib/arc/Makefile b/distrib/arc/Makefile deleted file mode 100644 index 1708bb8b3b5..00000000000 --- a/distrib/arc/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 1997/05/18 13:40:43 pefo Exp $ - -SUBDIR= ramdisk - -.include <bsd.subdir.mk> diff --git a/distrib/arc/Makefile.inc b/distrib/arc/Makefile.inc deleted file mode 100644 index ee964aa4745..00000000000 --- a/distrib/arc/Makefile.inc +++ /dev/null @@ -1,9 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.5 1998/06/27 20:52:02 todd Exp $ - -REV= ${OSrev} - -LDSTATIC= -static - -# Hack needed to find kernel images... -BSDSRCDIR?= /usr/src -SRCSYSDIR?= ${BSDSRCDIR}/sys diff --git a/distrib/arc/common/Makefile.inc b/distrib/arc/common/Makefile.inc deleted file mode 100644 index 599dc9a03f6..00000000000 --- a/distrib/arc/common/Makefile.inc +++ /dev/null @@ -1,72 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.4 2000/09/03 18:41:12 espie Exp $ - -# TOP is assumed to be defined by Makefile including this one. - -CBIN= instbin -COMMONDIR= ${TOP}/inst-common - -MOUNT_POINT?= /mnt -VND?= svnd0 -VND_DEV= /dev/${VND}a -VND_RDEV= /dev/r${VND}a -IMAGE?= xxx${REV}.fs -PID!= echo $$$$ -REALIMAGE= /tmp/image.${PID} -MDEC= ${DESTDIR}/usr/mdec - -LISTS= ${COMMONDIR}/list ${.CURDIR}/list -.if (${KERBEROS:L} == "yes") -CRUNCHCONF= ${COMMONDIR}/${CBIN}-krb.conf -.else -CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf -.endif -MTREE= ${COMMONDIR}/mtree.conf - -all: ${CBIN} -.ifndef FLOPPY3 - dd if=/dev/zero of=${REALIMAGE} bs=10k count=120 - vnconfig -v -c ${VND} ${REALIMAGE} - disklabel -w -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd ${VND} floppy5 - newfs -O -m 0 -o space -i 3000 -c 80 ${VND_RDEV} -.else - dd if=/dev/zero of=${REALIMAGE} bs=10k count=144 - vnconfig -v -c ${VND} ${REALIMAGE} - disklabel -w -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd ${VND} floppy3 - newfs -O -m 0 -o space -i 3000 -c 80 ${VND_RDEV} -.endif - mount ${VND_DEV} ${MOUNT_POINT} - mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS} - @echo "" - @df -i ${MOUNT_POINT} - @echo "" - umount ${MOUNT_POINT} - vnconfig -u ${VND} - cp ${REALIMAGE} ${IMAGE} - rm ${REALIMAGE} - -unconfig: - -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND} - -/bin/rm -f ${IMAGE} - -${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} - crunchgen -D ${TOP}/../../.. -m ${CBIN}.mk -L ${DESTDIR}/usr/lib \ - ${CRUNCHCONF} - -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - make -f ${CBIN}.mk all -.if (${KERBEROS:L} == "yes") - mv ${CBIN}-krb ${CBIN} -.endif - -install: - cp ${IMAGE} ${DESTDIR}/snapshot/ - -clean cleandir: - /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk \ - ${CBIN}.cache *.o *.lo *.c - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> diff --git a/distrib/arc/common/dot.commonutils b/distrib/arc/common/dot.commonutils deleted file mode 100644 index 9105adbc3be..00000000000 --- a/distrib/arc/common/dot.commonutils +++ /dev/null @@ -1,131 +0,0 @@ -# $OpenBSD: dot.commonutils,v 1.1 1997/05/14 21:13:31 pefo Exp $ -# -# 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. - -# Installation utilites (functions), to get OpenBSD installed on -# the hard disk. These are meant to be invoked from the shell prompt, -# by people installing OpenBSD. - -# we know that /etc/fstab is only generated on the hard drive -dest_dir=/ -if [ ! -f /etc/fstab ]; then - dest_dir=/mnt/ -fi - -# counter for possible shared library confusion -TAR=/bin/tar -GUNZIP="/usr/bin/gzip -d" - -Set_tmp_dir() -{ - def_tmp_dir=`pwd` - if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then - def_tmp_dir="$dest_dir"usr/distrib - fi - - echo -n "What directory should be used to find and/or store " - echo "installtion" - echo -n "files? [$def_tmp_dir] " - read tmp_dir - if [ "$tmp_dir" = "" ]; then - tmp_dir=$def_tmp_dir - fi - if [ ! -d "$tmp_dir" ]; then - /bin/rm -rf $tmp_dir - mkdir -p $tmp_dir - fi -} - -Tmp_dir() -{ - if [ "$tmp_dir" = "" ]; then - Set_tmp_dir - fi - cd $tmp_dir -} - -Load_fd() -{ - Tmp_dir - which= - echo "Don't forget that you can't load from the drive you booted from." - echo "" - - while [ "$which" != "0" -a "$which" != "1" ]; do - echo -n "Read from which floppy drive ('0' or '1')? [1] " - read which - if [ "X$which" = "X" ]; then - which=1 - fi - done - echo "" - echo "WARNING: during the floppy loading process, you should only" - echo "use Control-C at the prompt." - echo "" - while echo -n \ - "Insert floppy (hit Control-C to terminate, enter to load): " - do - read foo - mount -r -t msdos /dev/fd${which}a /mnt2 - cp -rp /mnt2/* . - umount /mnt2 - done -} - -Load_tape() -{ - Tmp_dir - echo -n "Which tape drive will you be using? [rst0] " - read which - if [ "X$which" = "X" ]; then - which=rst0 - fi - echo -n "Insert the tape into the tape drive and hit return to " - echo -n "continue..." - read foo - echo "Extracting files from the tape..." - $TAR -xvpf /dev/$which - echo "Done." -} - -Extract() -{ - Tmp_dir - echo -n "Would you like to list the files as they're extracted? [n] " - read verbose - case $verbose in - y*|Y*) - tarverbose=v - ;; - *) - tarverbose= - ;; - esac - cat "$1"* | $GUNZIP | (cd $dest_dir ; $TAR -xp"$tarverbose"f - ) -} diff --git a/distrib/arc/common/instbin-krb.conf b/distrib/arc/common/instbin-krb.conf deleted file mode 100644 index b4f14b34cbb..00000000000 --- a/distrib/arc/common/instbin-krb.conf +++ /dev/null @@ -1,27 +0,0 @@ -# $OpenBSD: instbin-krb.conf,v 1.3 2000/06/09 17:42:50 mickey Exp $ -# -# instbin.conf - unified binary for the inst/upgr floppies -# - -srcdirs bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin usr.sbin/pppd - -progs awk bad144 cat chmod cp dd df disklabel ed expr fsck_ffs -progs ftp fdisk -progs ifconfig init less ln ls mkdir mknod mount mount_cd9660 -progs mount_ffs mount_msdos mount_nfs mount_kernfs -progs mv newfs pax ksh ping pppd pwd reboot rm route -progs scsi sed shutdown slattach stty sync test tip umount -progs rsh restore gzip - -ln chmod chgrp -ln chmod chown -ln fsck_ffs fsck -ln less more -ln pax tar -ln pax cpio -ln ksh sh -ln ksh -sh # init invokes the shell this way -ln test [ -ln reboot halt - -libs -ledit -lutil -ltermcap -lkrb -ldes -ll -lm diff --git a/distrib/arc/common/instbin.conf b/distrib/arc/common/instbin.conf deleted file mode 100644 index 3bff904f6d0..00000000000 --- a/distrib/arc/common/instbin.conf +++ /dev/null @@ -1,27 +0,0 @@ -# $OpenBSD: instbin.conf,v 1.3 2000/06/09 17:42:50 mickey Exp $ -# -# instbin.conf - unified binary for the inst/upgr floppies -# - -srcdirs bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin usr.sbin/pppd - -progs awk bad144 cat chat chmod cp dd df disklabel ed -progs expr fsck_ffs ftp fdisk -progs ifconfig init less ln ls mkdir mknod mount mount_cd9660 -progs mount_ffs mount_msdos mount_nfs mount_kernfs -progs mv newfs pax ksh ping pppd pwd reboot rm route -progs scsi sed shutdown slattach stty sync test tip umount -progs rsh restore gzip - -ln chmod chgrp -ln chmod chown -ln fsck_ffs fsck -ln less more -ln pax tar -ln pax cpio -ln ksh sh -ln ksh -sh # init invokes the shell this way -ln test [ -ln reboot halt - -libs -ledit -lutil -ltermcap -ll -lm diff --git a/distrib/arc/common/list b/distrib/arc/common/list deleted file mode 100644 index ef4809f1152..00000000000 --- a/distrib/arc/common/list +++ /dev/null @@ -1,91 +0,0 @@ -# $OpenBSD: list,v 1.3 2000/07/15 02:20:59 deraadt Exp $ - -# copy the crunched binary, link to it, and kill it -COPY ${OBJDIR}/instbin instbin -LINK instbin bin/cat -LINK instbin bin/chmod bin/chgrp sbin/chown -LINK instbin bin/cp -LINK instbin bin/cpio -LINK instbin bin/dd -LINK instbin bin/df -LINK instbin bin/ed -LINK instbin bin/expr -LINK instbin bin/hostname -LINK instbin bin/ln -LINK instbin bin/ls -LINK instbin bin/mkdir -LINK instbin bin/mv -LINK instbin bin/pwd -LINK instbin bin/rm -LINK instbin bin/sh -LINK instbin bin/sleep -LINK instbin bin/stty -LINK instbin bin/sync -LINK instbin bin/tar -LINK instbin bin/test -LINK instbin bin/[ -LINK instbin sbin/disklabel -LINK instbin sbin/fdisk -LINK instbin sbin/fsck -LINK instbin sbin/fsck_ffs -LINK instbin sbin/halt -LINK instbin sbin/ifconfig -LINK instbin sbin/init -LINK instbin sbin/mknod -LINK instbin sbin/mount -LINK instbin sbin/mount_cd9660 -LINK instbin sbin/mount_ffs -LINK instbin sbin/mount_msdos -LINK instbin sbin/mount_nfs -LINK instbin sbin/mount_kernfs -LINK instbin sbin/mount_ext2fs -LINK instbin sbin/newfs -LINK instbin sbin/ping -LINK instbin sbin/restore -LINK instbin sbin/reboot -LINK instbin sbin/route -LINK instbin sbin/shutdown -LINK instbin sbin/slattach -LINK instbin sbin/umount -SYMLINK /bin/cat usr/bin/awk -SYMLINK /bin/cat usr/bin/cut -SYMLINK /bin/cat usr/bin/egrep -SYMLINK /bin/cat usr/bin/fgrep -SYMLINK /bin/cat usr/bin/ftp -SYMLINK /bin/cat usr/bin/grep -SYMLINK /bin/cat usr/bin/gzip -SYMLINK /bin/cat usr/bin/gunzip -SYMLINK /bin/cat usr/bin/less -SYMLINK /bin/cat usr/bin/more -SYMLINK /bin/cat usr/bin/rsh -SYMLINK /bin/cat usr/bin/sed -SYMLINK /bin/cat usr/bin/sort -SYMLINK /bin/cat usr/bin/tip -SYMLINK /bin/cat usr/bin/vi -SYMLINK /bin/cat usr/sbin/bad144 -SYMLINK /bin/cat usr/sbin/chat -SYMLINK /bin/cat usr/sbin/pppd -SPECIAL /bin/rm instbin - -# copy the MAKEDEV script and make some devices -COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV -SPECIAL cd dev; sh MAKEDEV ramdisk -SPECIAL /bin/rm dev/MAKEDEV - -# we need the contents of /usr/mdec -COPY ${DESTDIR}/usr/mdec/bootsd usr/mdec/bootsd -SPECIAL cd usr/mdec; ln bootsd bootwd -COPY ${DESTDIR}/usr/mdec/bootsd usr/mdec/sdboot -SPECIAL cd usr/mdec; ln sdboot wdboot - -# various files that we need in /etc for the install -COPY ${DESTDIR}/etc/group etc/group -COPY ${DESTDIR}/etc/protocols etc/protocols -COPY ${DESTDIR}/etc/services etc/services -COPY ${DESTDIR}/etc/spwd.db etc/spwd.db - -COPYDIR ${DESTDIR}/etc/ppp etc/ppp - -# and the common installation tools -COPY ${TOPDIR}/common/termcap.pc3 usr/share/misc/termcap -COPY ${DESTDIR}/usr/share/misc/scsi_modes usr/share/misc/scsi_modes diff --git a/distrib/arc/common/mtree.conf b/distrib/arc/common/mtree.conf deleted file mode 100644 index bb39f6183b4..00000000000 --- a/distrib/arc/common/mtree.conf +++ /dev/null @@ -1,83 +0,0 @@ -# $OpenBSD: mtree.conf,v 1.1 1997/05/14 21:13:32 pefo Exp $ - -/set type=dir uname=root gname=wheel mode=0755 -# . -. - -# ./bin -bin -# ./bin -.. - -# ./dev -dev -# ./dev -.. - -# ./etc -etc - -# ./etc/ppp -ppp -# ./etc/ppp -.. - -# ./etc -.. - -# ./mnt -mnt -# ./mnt -.. - -# ./mnt2 -mnt2 -# ./mnt2 -.. - -# ./kern -kern -# ./kern -.. - -# ./sbin -sbin -# ./sbin -.. - -# ./tmp -tmp mode=01777 -# ./tmp -.. - -# ./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 -.. diff --git a/distrib/arc/common/rdsetroot.c b/distrib/arc/common/rdsetroot.c deleted file mode 100644 index f6fc1fad70b..00000000000 --- a/distrib/arc/common/rdsetroot.c +++ /dev/null @@ -1,214 +0,0 @@ -/* $OpenBSD: rdsetroot.c,v 1.3 1997/11/26 02:32:21 deraadt Exp $ */ -/* $NetBSD: rdsetroot.c,v 1.2 1995/10/13 16:38:39 gwr Exp $ */ - -/* - * Copyright (c) 1994 Gordon W. Ross - * All rights reserved. - * - * ELF modifications Copyright (c) 1997 Per Fogelstrom. - * - * 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. 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. - */ - -/* - * Copy a ramdisk image into the space reserved for it. - * Kernel variables: rd_root_size, rd_root_image - */ - -#include <sys/types.h> -#include <sys/file.h> -#include <sys/mman.h> - -#include <stdio.h> -#include <nlist.h> -#include <sys/exec_elf.h> - -extern off_t lseek(); - -char *file; - -/* Virtual addresses of the symbols we frob. */ -long rd_root_image_va, rd_root_size_va; - -/* Offsets relative to start of data segment. */ -long rd_root_image_off, rd_root_size_off; - -/* value in the location at rd_root_size_off */ -int rd_root_size_val; - -/* pointers to pieces of mapped file */ -char *dataseg; - -/* parameters to mmap digged out from program header */ -int mmap_offs; -int mmap_size; - -main(argc,argv) - char **argv; -{ - int fd, n; - int found; - int *ip; - char *cp; - Elf32_Ehdr eh; - Elf32_Phdr *ph; - int phsize; - - if (argc < 2) { - printf("%s: missing file name\n", argv[0]); - exit(1); - } - file = argv[1]; - - fd = open(file, O_RDWR); - if (fd < 0) { - perror(file); - exit(1); - } - - n = read(fd, &eh, sizeof(eh)); - if (n < sizeof(eh)) { - printf("%s: reading header\n", file); - exit(1); - } - - if (!IS_ELF(eh)) { - printf("%s: not elf\n", file); - exit(1); - } - - phsize = eh.e_phnum * sizeof(Elf32_Phdr); - ph = (Elf32_Phdr *)malloc(phsize); - lseek(fd, eh.e_phoff, 0); - if(read(fd, (char *)ph, phsize) != phsize) { - printf("%s: can't read phdr area\n", file); - exit(1); - } - found = 0; - for(n = 0; n < eh.e_phnum && !found; n++) { - if(ph[n].p_type == PT_LOAD) { - found = find_rd_root_image(file, &eh, &ph[n]); - } - } - if(!found) { - printf("%s: can't locate space for rd_root_image!", file); - exit(1); - } - - /* - * Map in the whole data segment. - * The file offset needs to be page aligned. - */ - dataseg = mmap(NULL, /* any address is ok */ - mmap_size, /* length */ - PROT_READ | PROT_WRITE, - MAP_SHARED, - fd, mmap_offs); - if ((long)dataseg == -1) { - printf("%s: can not map data seg\n", file); - perror(file); - exit(1); - } - - /* - * Find value in the location: rd_root_size - */ - ip = (int*) (dataseg + rd_root_size_off); - rd_root_size_val = *ip; -#ifdef DEBUG - printf("rd_root_size val: 0x%08X (%d blocks)\n", - rd_root_size_val, (rd_root_size_val >> 9)); -#endif - - /* - * Copy the symbol table and string table. - */ -#ifdef DEBUG - printf("copying root image...\n"); -#endif - n = read(0, dataseg + rd_root_image_off, - rd_root_size_val); - if (n < 0) { - perror("read"); - exit(1); - } - - msync(dataseg, mmap_size, 0); - -#ifdef DEBUG - printf("...copied %d bytes\n", n); -#endif - close(fd); - exit(0); -} - - -/* - * Find locations of the symbols to patch. - */ -struct nlist wantsyms[] = { - { "_rd_root_size", 0 }, - { "_rd_root_image", 0 }, - { NULL, 0 }, -}; - -int -find_rd_root_image(file, eh, ph) - char *file; - Elf32_Ehdr *eh; - Elf32_Phdr *ph; -{ - int data_va; - int std_entry; - int kernel_start; - int kernel_size; - - if (nlist(file, wantsyms)) { - printf("%s: no rd_root_image symbols?\n", file); - exit(1); - } - kernel_start = ph->p_paddr; - kernel_size = ph->p_filesz; - - rd_root_size_off = wantsyms[0].n_value - kernel_start; - rd_root_image_off = wantsyms[1].n_value - kernel_start; - -#ifdef DEBUG - printf("rd_root_size_off = 0x%x\n", rd_root_size_off); - printf("rd_root_image_off = 0x%x\n", rd_root_image_off); -#endif - - /* - * Sanity check locations of db_* symbols - */ - if (rd_root_image_off < 0 || rd_root_image_off >= kernel_size) { - return(0); - } - if (rd_root_size_off < 0 || rd_root_size_off >= kernel_size) { - printf("%s: rd_root_size not in data segment?\n", file); - return(0); - } - mmap_offs = ph->p_offset; - mmap_size = kernel_size; - return(1); -} diff --git a/distrib/arc/common/termcap.pc3 b/distrib/arc/common/termcap.pc3 deleted file mode 100644 index ef4e646fe54..00000000000 --- a/distrib/arc/common/termcap.pc3 +++ /dev/null @@ -1,44 +0,0 @@ -# $OpenBSD: termcap.pc3,v 1.1 1997/05/14 21:13:33 pefo Exp $ -# -# Copyright (c) 1980, 1985, 1989 The Regents of the University of California. -# 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 the University of -# California, Berkeley and its contributors. -# 4. 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 BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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. -# -# @(#)termcap.src 5.109 (Berkeley) 3/8/93 -# -pc3|ibmpc3|IBM PC 386BSD Console:\ - :DO=\E[%dB:K1=\E[H:K2=\E[E:K3=\E[I:K4=\E[F:K5=\E[G:LE=\E[%dD:\ - :RI=\E[%dC:UP=\E[%dA:am:bl=^G:bs:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\ - :cm=\E[%i%d;%dH:co#80:cr=^M:do=^J:ho=\E[H:is=\E[m:k0=\E[V:k1=\E[M:\ - :k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:\ - :kD=\177:kH=\E[F:kN=\E[G:kP=\E[I:kb=\177:kd=\E[B:kh=\E[H:kl=\E[D:\ - :kr=\E[C:ku=\E[A:le=^H:li#25:ms:nd=\E[C:rs=\E[m\E[x\E[14r:se=\E[m:\ - :sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:te=\E[m:ti=\E[m:up=\E[A:km:pt:\ - :AL=\E[%dL:DL=\E[%dM:SF=\E[%dS:SR=\E[%dT:al=\E[L:dl=\E[M: diff --git a/distrib/arc/floppies/Makefile b/distrib/arc/floppies/Makefile deleted file mode 100644 index f577eede64f..00000000000 --- a/distrib/arc/floppies/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2000/03/01 22:09:56 todd Exp $ - -SUBDIR= kernel inst upgr - -unconfig: - cd kernel; ${MAKE} unconfig - -.include <bsd.subdir.mk> diff --git a/distrib/arc/floppies/Makefile.inc b/distrib/arc/floppies/Makefile.inc deleted file mode 100644 index 87fc41ce14d..00000000000 --- a/distrib/arc/floppies/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.6 2000/03/01 22:09:56 todd Exp $ - -REV= ${OSrev} diff --git a/distrib/arc/floppies/inst-common/Makefile.inc b/distrib/arc/floppies/inst-common/Makefile.inc deleted file mode 100644 index e711e8cb963..00000000000 --- a/distrib/arc/floppies/inst-common/Makefile.inc +++ /dev/null @@ -1,51 +0,0 @@ -# $OpenBSD: Makefile.inc,v 1.4 1997/09/26 02:15:13 millert Exp $ - -# TOP is assumed to be defined by Makefile including this one. - -CBIN= instbin -COMMONDIR= ${TOP}/inst-common - -MOUNT_POINT?= /mnt -VND?= svnd0 -VND_DEV= /dev/${VND}c -VND_RDEV= /dev/r${VND}c -PID!= echo $$$$ -REALIMAGE!= echo /var/tmp/image.${PID} -IMAGE?= inst${REV}.fs -MDEC= ${DESTDIR}/usr/mdec - -LISTS= ${COMMONDIR}/list ${.CURDIR}/list -CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf -MTREE= ${COMMONDIR}/mtree.conf - -all: ${CBIN} - dd if=/dev/zero of=${REALIMAGE} bs=120k count=12 - vnconfig -v -c ${VND} ${REALIMAGE} - disklabel -w ${VND} floppy - newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} - mount ${VND_DEV} ${MOUNT_POINT} - mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS} - df -i ${MOUNT_POINT} - umount ${MOUNT_POINT} - vnconfig -u ${VND_DEV} - cp ${REALIMAGE} ${IMAGE} - rm ${REALIMAGE} - -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 ${CRUNCHCONF} - -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - make -f ${CBIN}.mk all - -clean cleandir: - /bin/rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> diff --git a/distrib/arc/floppies/inst-common/dot.commonutils b/distrib/arc/floppies/inst-common/dot.commonutils deleted file mode 100644 index 4cad5754406..00000000000 --- a/distrib/arc/floppies/inst-common/dot.commonutils +++ /dev/null @@ -1,131 +0,0 @@ -# $OpenBSD: dot.commonutils,v 1.2 1996/12/09 07:04:52 deraadt Exp $ -# -# 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. - -# Installation utilites (functions), to get OpenBSD installed on -# the hard disk. These are meant to be invoked from the shell prompt, -# by people installing OpenBSD. - -# we know that /etc/fstab is only generated on the hard drive -dest_dir=/ -if [ ! -f /etc/fstab ]; then - dest_dir=/mnt/ -fi - -# counter for possible shared library confusion -TAR=/bin/tar -GUNZIP="/usr/bin/gzip -d" - -Set_tmp_dir() -{ - def_tmp_dir=`pwd` - if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then - def_tmp_dir="$dest_dir"usr/distrib - fi - - echo -n "What directory should be used to find and/or store " - echo "installtion" - echo -n "files? [$def_tmp_dir] " - read tmp_dir - if [ "$tmp_dir" = "" ]; then - tmp_dir=$def_tmp_dir - fi - if [ ! -d "$tmp_dir" ]; then - /bin/rm -rf $tmp_dir - mkdir -p $tmp_dir - fi -} - -Tmp_dir() -{ - if [ "$tmp_dir" = "" ]; then - Set_tmp_dir - fi - cd $tmp_dir -} - -Load_fd() -{ - Tmp_dir - which= - echo "Don't forget that you can't load from the drive you booted from." - echo "" - - while [ "$which" != "0" -a "$which" != "1" ]; do - echo -n "Read from which floppy drive ('0' or '1')? [1] " - read which - if [ "X$which" = "X" ]; then - which=1 - fi - done - echo "" - echo "WARNING: during the floppy loading process, you should only" - echo "use Control-C at the prompt." - echo "" - while echo -n \ - "Insert floppy (hit Control-C to terminate, enter to load): " - do - read foo - mount -r -t msdos /dev/fd${which}a /mnt2 - cp -rp /mnt2/* . - umount /mnt2 - done -} - -Load_tape() -{ - Tmp_dir - echo -n "Which tape drive will you be using? [rst0] " - read which - if [ "X$which" = "X" ]; then - which=rst0 - fi - echo -n "Insert the tape into the tape drive and hit return to " - echo -n "continue..." - read foo - echo "Extracting files from the tape..." - $TAR xvpf /dev/$which - echo "Done." -} - -Extract() -{ - Tmp_dir - echo -n "Would you like to list the files as they're extracted? [n] " - read verbose - case $verbose in - y*|Y*) - tarverbose=v - ;; - *) - tarverbose= - ;; - esac - cat "$1"* | $GUNZIP | (cd $dest_dir ; $TAR -xp"$tarverbose"f - ) -} diff --git a/distrib/arc/floppies/inst-common/instbin.conf b/distrib/arc/floppies/inst-common/instbin.conf deleted file mode 100644 index 91f709faf80..00000000000 --- a/distrib/arc/floppies/inst-common/instbin.conf +++ /dev/null @@ -1,26 +0,0 @@ -# $OpenBSD: instbin.conf,v 1.3 2000/06/09 17:42:50 mickey Exp $ -# -# kcbin.conf - unified binary for the kc floppy -# - -srcdirs bin sbin usr.bin usr.sbin gnu/usr.bin - -progs bad144 cat chmod chroot cp dd df disklabel ed expr fsck_ffs -progs ftp awk gzip -progs ifconfig init ln ls mkdir mknod less mount mount_cd9660 -progs mount_ffs mount_msdos mount_nfs mv newfs pax ping pwd reboot rm route -progs sed sh shutdown slattach strings stty sync test tip umount - -ln chmod chgrp -ln chmod chown -ln pax tar -ln sh -sh # init invokes the shell this way -ln test [ -ln mount_cd9660 cd9660 -ln fsck_ffs fsck -ln mount_ffs ffs -ln mount_msdos msdos -ln mount_nfs nfs -ln reboot halt - -libs -ledit -lutil -ltermcap -lcrypt -ll -lz -lm diff --git a/distrib/arc/floppies/inst-common/list b/distrib/arc/floppies/inst-common/list deleted file mode 100644 index 455b4071952..00000000000 --- a/distrib/arc/floppies/inst-common/list +++ /dev/null @@ -1,79 +0,0 @@ -# $OpenBSD: list,v 1.3 2000/06/09 17:42:50 mickey Exp $ - -# copy the crunched binary, link to it, and kill it -COPY ${OBJDIR}/instbin instbin -LINK instbin bin/cat -LINK instbin bin/chmod -LINK instbin bin/chgrp -LINK instbin bin/cp -LINK instbin bin/dd -LINK instbin bin/df -LINK instbin bin/ed -LINK instbin bin/expr -LINK instbin bin/ln -LINK instbin bin/ls -LINK instbin bin/mkdir -LINK instbin bin/mv -LINK instbin bin/pwd -LINK instbin bin/rm -LINK instbin bin/sh -LINK instbin bin/stty -LINK instbin bin/sync -LINK instbin bin/tar -LINK instbin bin/test -LINK instbin bin/[ -LINK instbin sbin/chown -LINK instbin sbin/disklabel -LINK instbin sbin/fsck -LINK instbin sbin/fsck_ffs -LINK instbin sbin/halt -LINK instbin sbin/ifconfig -LINK instbin sbin/init -LINK instbin sbin/mknod -LINK instbin sbin/mount -LINK instbin sbin/mount_cd9660 -LINK instbin sbin/mount_ffs -LINK instbin sbin/mount_msdos -LINK instbin sbin/mount_nfs -LINK instbin sbin/newfs -LINK instbin sbin/ping -LINK instbin sbin/reboot -LINK instbin sbin/route -LINK instbin sbin/shutdown -LINK instbin sbin/slattach -LINK instbin sbin/umount -SYMLINK /bin/cat usr/bin/awk -SYMLINK /bin/cat usr/bin/ftp -SYMLINK /bin/cat usr/bin/less -SYMLINK /bin/cat usr/bin/gzip -SYMLINK /bin/cat usr/bin/more -SYMLINK /bin/cat usr/bin/sed -SYMLINK /bin/cat usr/bin/strings -SYMLINK /bin/cat usr/bin/tip -#SYMLINK /bin/cat usr/sbin/bad144 -SYMLINK /bin/cat usr/sbin/chroot -SPECIAL /bin/rm instbin -SPECIAL sync - -# copy the MAKEDEV script and make some devices -#COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV -SPECIAL cd dev; sh ${DESTDIR}/dev/MAKEDEV std fd0 -#SPECIAL /bin/rm dev/MAKEDEV - -# we need the contents of /usr/mdec -#COPY /usr/mdec/boot usr/mdec/boot -#COPY /usr/mdec/bootxx usr/mdec/bootxx -#COPY /usr/mdec/binstall usr/mdec/binstall - -# various files that we need in /etc for the install -COPY ${DESTDIR}/etc/group etc/group -COPY ${DESTDIR}/etc/master.passwd etc/master.passwd -COPY ${DESTDIR}/etc/passwd etc/passwd -COPY ${DESTDIR}/etc/protocols etc/protocols -COPY ${DESTDIR}/etc/pwd.db etc/pwd.db -COPY ${DESTDIR}/etc/services etc/services -COPY ${DESTDIR}/etc/spwd.db etc/spwd.db - -# and the common installation tools -COPY ${TOPDIR}/inst-common/dot.commonutils .commonutils -COPY ${TOPDIR}/inst-common/termcap.pc3 usr/share/misc/termcap diff --git a/distrib/arc/floppies/inst-common/mtree.conf b/distrib/arc/floppies/inst-common/mtree.conf deleted file mode 100644 index 14ffbc0b73b..00000000000 --- a/distrib/arc/floppies/inst-common/mtree.conf +++ /dev/null @@ -1,72 +0,0 @@ -# $OpenBSD: mtree.conf,v 1.2 2000/03/01 22:09:57 todd 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 -.. - -# ./sbin -sbin -# ./sbin -.. - -# ./tmp -tmp -# ./tmp -.. - -# ./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 -.. diff --git a/distrib/arc/floppies/inst-common/termcap.pc3 b/distrib/arc/floppies/inst-common/termcap.pc3 deleted file mode 100644 index 1baa400503c..00000000000 --- a/distrib/arc/floppies/inst-common/termcap.pc3 +++ /dev/null @@ -1,44 +0,0 @@ -# $OpenBSD: termcap.pc3,v 1.2 2000/03/01 22:09:57 todd Exp $ - -# Copyright (c) 1980, 1985, 1989 The Regents of the University of California. -# 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 the University of -# California, Berkeley and its contributors. -# 4. 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 BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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. -# -# @(#)termcap.src 5.109 (Berkeley) 3/8/93 -# -pc3|ibmpc3|IBM PC 386BSD Console:\ - :DO=\E[%dB:K1=\E[H:K2=\E[E:K3=\E[I:K4=\E[F:K5=\E[G:LE=\E[%dD:\ - :RI=\E[%dC:UP=\E[%dA:am:bl=^G:bs:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\ - :cm=\E[%i%d;%dH:co#80:cr=^M:do=^J:ho=\E[H:is=\E[m:k0=\E[V:k1=\E[M:\ - :k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:\ - :kD=\177:kH=\E[F:kN=\E[G:kP=\E[I:kb=\177:kd=\E[B:kh=\E[H:kl=\E[D:\ - :kr=\E[C:ku=\E[A:le=^H:li#25:ms:nd=\E[C:rs=\E[m\E[x\E[14r:se=\E[m:\ - :sf=\E[S:so=\E[7m:sr=\E[T:ta=^I:te=\E[m:ti=\E[m:up=\E[A:km:pt:\ - :AL=\E[%dL:DL=\E[%dM:SF=\E[%dS:SR=\E[%dT:al=\E[L:dl=\E[M: diff --git a/distrib/arc/floppies/inst/Makefile b/distrib/arc/floppies/inst/Makefile deleted file mode 100644 index 3e97ab353a3..00000000000 --- a/distrib/arc/floppies/inst/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2000/03/01 22:09:56 todd Exp $ - -TOP= ${.CURDIR}/.. - -.include "${TOP}/Makefile.inc" -IMAGE= inst${REV}.fs - -.include "${TOP}/inst-common/Makefile.inc" diff --git a/distrib/arc/floppies/inst/disktab.preinstall b/distrib/arc/floppies/inst/disktab.preinstall deleted file mode 100644 index 26663b9e6d4..00000000000 --- a/distrib/arc/floppies/inst/disktab.preinstall +++ /dev/null @@ -1,31 +0,0 @@ -# $OpenBSD: disktab.preinstall,v 1.2 2000/03/01 22:09:56 todd Exp $ - -# 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, nc*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) -# diff --git a/distrib/arc/floppies/inst/dot.hdprofile b/distrib/arc/floppies/inst/dot.hdprofile deleted file mode 100644 index fd54fa75734..00000000000 --- a/distrib/arc/floppies/inst/dot.hdprofile +++ /dev/null @@ -1,61 +0,0 @@ -# $OpenBSD: dot.hdprofile,v 1.1 1996/10/10 10:05:56 deraadt Exp $ -# -# 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=pc3 -export TERM - -umask 022 - -if [ "X${DONEPROFILE}" = "X" ]; then - DONEPROFILE=YES - - echo "Checking filesystems..." - fsck -y - - echo "Mounting filesystems..." - mount -a - - # set up some sane defaults - echo 'erase ^?, werase ^W, kill ^U, intr ^C' - stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 - echo '' - - # run update, so that installed software is written as it goes. - update - - # pull in the functions that people will use from the shell prompt. - . /.commonutils - . /.instutils - - echo "Follow the installation directions to install the OpenBSD" - echo "distribution sets." -fi diff --git a/distrib/arc/floppies/inst/dot.instutils b/distrib/arc/floppies/inst/dot.instutils deleted file mode 100644 index d6f49f5b4fe..00000000000 --- a/distrib/arc/floppies/inst/dot.instutils +++ /dev/null @@ -1,156 +0,0 @@ -# $OpenBSD: dot.instutils,v 1.1 1996/10/10 10:05:57 deraadt Exp $ -# -# 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. - -# Installation configuration utilites (functions), to get OpenBSD configured -# reasonably once it is installed on the hard disk. These are meant to be -# invoked from the shell prompt, by people installing OpenBSD. - -Configure() -{ - DEV=/dev - ETC=/etc - if [ ! -f /etc/fstab ]; then - DEV=/mnt/dev - ETC=/mnt/etc - fi - - echo "You will now be prompted for information about this" - echo "machine. If you hit return, the default answer (in" - echo "brackets) will be used." - - echo "" - echo -n "What is this machine's hostname? [unknown.host.domain] " - read hname - if [ "$hname" = "" ]; then - hname=unknown.host.domain - fi - echo $hname > ${ETC}/myname - proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - - echo "" - echo "What domain is this machine in (this is NOT its YP" - echo -n "domain name)? [$proto_domain] " - read dname - if [ "$dname" = "" ]; then - dname=$proto_domain - fi - - echo "" - if [ -e $ETC/sendmail.cf ]; then - echo "WARNING: A default sendmail.cf exists, and probably" - echo "needs to be tuned and/or replaced, to work properly at" - echo "your site!" - else - echo "WARNING: No default sendmail.cf installed. Did you" - echo "forget to install the 'etc' distribution?" - fi - - echo "127.0.0.1 localhost localhost.$dname" > ${ETC}/hosts - - echo "" - echo -n "Does this machine have an ethernet interface? [y] " - read resp - case "$resp" in - n*) - ;; - *) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name " - echo -n "(e.g. ed0, ep0, etc)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with " - echo -n "interface ${intf}? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> ${ETC}/hosts - - echo -n "Does this interface have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read ifnetmask - if [ "$ifnetmask" = "" ]; then - ifnetmask=0xffffff00 - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this interface need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [link0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=link0 - fi - ;; - *) - ifflags= - ;; - esac - echo "inet $ifname $ifnetmask $ifflags" > ${ETC}/hostname.$intf - - echo "" - echo -n "WARNING: if you have any more ethernet interfaces, " - echo "you will have to configure" - echo -n "them by hand. Read the comments in /etc/netstart to " - echo "learn how to do this." - ;; - esac - - echo "" - echo -n "Making device nodes (may take a while)..." - cd ${DEV} - sh MAKEDEV all - echo " done." - - sync - - echo "" - echo "If you haven't already installed a kernel on the hard drive" - echo "using your kernel-copy floppy, do so now. Kernel" - echo "installation instructions can be found in the" - echo "installation notes." -} diff --git a/distrib/arc/floppies/inst/dot.profile b/distrib/arc/floppies/inst/dot.profile deleted file mode 100644 index a6815de67a9..00000000000 --- a/distrib/arc/floppies/inst/dot.profile +++ /dev/null @@ -1,58 +0,0 @@ -# $OpenBSD: dot.profile,v 1.5 2000/10/25 16:38:15 millert Exp $ -# -# 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. -# - -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:/ -export HISTFILE=/.sh_history -export TERM=pc3 - -umask 022 - -set -o emacs # emacs-style command line editing -alias dmesg="cat /kern/msgbuf" - -if [ "X${DONEPROFILE}" = "X" ]; then - DONEPROFILE=YES - - # set up some sane defaults - echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' - stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T 9600 - echo '' - - # run update, so that installed software is written as it goes. - update - - # pull in the functions that people will use from the shell prompt. - . /.commonutils - . /.instutils - - # run the installation script. - install -fi diff --git a/distrib/arc/floppies/inst/install.sh b/distrib/arc/floppies/inst/install.sh deleted file mode 100644 index 94fb1cbf636..00000000000 --- a/distrib/arc/floppies/inst/install.sh +++ /dev/null @@ -1,483 +0,0 @@ -#!/bin/sh -# $OpenBSD: install.sh,v 1.4 1998/11/03 04:17:18 aaron Exp $ -# -# 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. - -# OpenBSD installation script. -# In a perfect world, this would be a nice C program, with a reasonable -# user interface. - -DT=/etc/disktab # /etc/disktab -FSTABDIR=/mnt/etc # /mnt/etc -#DONTDOIT=echo - -VERSION=1.1 -FSTAB=${FSTABDIR}/fstab - -getresp() { - read resp - if [ "X$resp" = "X" ]; then - resp=$1 - fi -} - -echo "Welcome to the OpenBSD ${VERSION} installation program." -echo "" -echo "This program is designed to help you put OpenBSD on your hard disk," -echo "in a simple and rational way. You'll be asked several questions," -echo "and it would probably be useful to have your disk's hardware" -echo "manual, the installation notes, and a calculator handy." -echo "" -echo "In particular, you will need to know some reasonably detailed" -echo "information about your disk's geometry, because there is currently" -echo "no way this this program can figure that information out." -echo "" -echo "As with anything which modifies your hard drive's contents, this" -echo "program can cause SIGNIFICANT data loss, and you are advised" -echo "to make sure your hard drive is backed up before beginning the" -echo "installation process." -echo "" -echo "Default answers are displyed in brackets after the questions." -echo "You can hit Control-C at any time to quit, but if you do so at a" -echo "prompt, you may have to hit return. Also, quitting in the middle of" -echo "installation may leave your system in an inconsistent state." -echo "" -echo -n "Proceed with installation? [n] " -getresp "n" -case "$resp" in - y*|Y*) - echo "Cool! Let's get to it..." - ;; - *) - echo "" - echo "OK, then. Enter 'halt' at the prompt to halt the" - echo "machine. Once the machine has halted, remove the" - echo "floppy and press any key to reboot." - exit - ;; -esac - -echo "" -echo "To do the installation, you'll need to provide some information about" -echo "your disk." -echo "" -echo "OpenBSD can be installed on ST506, ESDI, IDE, or SCSI disks." -echo -n "What kind of disk will you be installing on? [SCSI] " -getresp "SCSI" -case "$resp" in - esdi|ESDI|st506|ST506) - drivetype=wd - echo -n "Does it support _automatic_ sector remapping? [y] " - getresp "y" - case "$resp" in - n*|N*) - sect_fwd="sf:" - ;; - *) - sect_fwd="" - ;; - esac - ;; - ide|IDE) - drivetype=wd - sect_fwd="" - type=ST506 - ;; - scsi|SCSI) - drivetype=sd - sect_fwd="" - type=SCSI - ;; -esac - -# find out what units are possible for that disk, and query the user. -driveunits=`ls /dev/${drivetype}?a | sed -e 's,/dev/\(...\)a,\1,g'` -if [ "X${driveunits}" = "X" ]; then - echo "FATAL ERROR:" - echo "No devices for disks of type '${drivetype}'." - echo "This is probably a bug in the install disks." - echo "Exiting install program." - exit -fi -prefdrive=${drivetype}0 - -echo "" -echo "The following ${drivetype}-type disks are supported by this" -echo "installation procedure:" -echo " "${driveunits} -echo "Note that they may not exist in _your_ machine; the list of" -echo "disks in your machine was printed when the system was booting." -echo "" -while [ "X${drivename}" = "X" ]; do - echo -n "Which disk would like to install on? [${prefdrive}] " - getresp ${prefdrive} - otherdrives=`echo "${driveunits}" | sed -e s,${resp},,` - if [ "X${driveunits}" = "X${otherdrives}" ]; then - echo "" - echo "\"${resp}\" is an invalid drive name. Valid choices" - echo "are: "${driveunits} - echo "" - else - drivename=${resp} - fi -done - -echo "" -echo "Using disk ${drivename}." -echo "" -echo -n "What kind of disk is it? (one word please) [my${drivetype}] " -getresp "my${drivetype}" -labelname=$resp - -echo "" -echo "You will now need to provide some information about your disk's" -echo "geometry. This should either be in the User's Manual for your disk," -echo "or you should have written down what OpenBSD printed when booting." -echo "(Note that he geometry that's printed at boot time is preferred.)" -echo "" -echo -n "Number of bytes per disk sector? [512] " -getresp 512 -bytes_per_sect="$resp" - -echo -n "Number of disk cylinders? " -getresp -cyls_per_disk="$resp" - -echo -n "Number of disk tracks (heads) per disk cylinder? " -getresp -tracks_per_cyl="$resp" - -echo -n "Number of disk sectors per disk track? " -getresp -sects_per_track="$resp" - -cylindersize=`expr $sects_per_track \* $tracks_per_cyl` -cylbytes=`expr $cylindersize \* $bytes_per_sect` -disksize=`expr $cylindersize \* $cyls_per_disk` - -echo "" -echo "Your disk has a total of $disksize $bytes_per_sect byte sectors," -echo "arranged as $cyls_per_disk cylinders which contain $cylindersize " -echo "sectors ($cylbytes bytes) each." -echo "" -echo "You can specify partition sizes in cylinders ('c') or sectors ('s')." -while [ "X${sizemult}" = "X" ]; do - echo -n "What units would you like to use? [cylinders] " - getresp cylinders - case "$resp" in - c*|C*) - sizemult=$cylindersize - sizeunit="cylinders" - ;; - s*|S*) - sizemult=1 - sizeunit="sectors" - ;; - *) - echo "" - echo "Enter cylinders ('c') or sectors ('s')." - ;; - esac -done - -if [ $sizeunit = "sectors" ]; then - echo "" - echo "For best disk performance, partitions should begin and end on" - echo "cylinder boundaries. Wherever possible, pick sizes that are" - echo "multiples of the cylinder size ($cylindersize sectors)." -fi - -echo -n "" -echo -n "Size of OpenBSD portion of disk (in $sizeunit)? " -getresp -partition=$resp -partition_sects=`expr $resp \* $sizemult` -part_offset=0 -if [ $partition_sects -lt $disksize ]; then - echo -n "Offset of OpenBSD portion of disk (in $sizeunit)? " - getresp - part_offset=$resp -fi -badspacesec=0 -if [ "$sect_fwd" = "sf:" ]; then - badspacecyl=`expr $sects_per_track + 126` - badspacecyl=`expr $badspacecyl + $cylindersize - 1` - badspacecyl=`expr $badspacecyl / $cylindersize` - badspacesec=`expr $badspacecyl \* $cylindersize` - echo "" - echo -n "Using $badspacesec sectors ($badspacecyl cylinders) for the " - echo "bad144 bad block table" -fi - -sects_left=`expr $partition_sects - $badspacesec` -units_left=`expr $sects_left / $sizemult` -echo "" -echo "There are $units_left $sizeunit left to allocate." -echo "" -root=0 -while [ $root -eq 0 ]; do - echo -n "Root partition size (in $sizeunit)? " - getresp - case $resp in - [1-9]*) - total=$resp - if [ $total -gt $units_left ]; then - echo -n "Root size is greater than remaining " - echo "free space on disk." - else - root=$resp - fi - ;; - esac -done -root_offset=$part_offset -part_used=`expr $root + $badspacesec / $sizemult` -units_left=`expr $partition - $part_used` -echo "" - -swap=0 -while [ $swap -eq 0 ]; do - echo "$units_left $sizeunit remaining in OpenBSD portion of disk." - echo -n "Swap partition size (in $sizeunit)? " - getresp - case $resp in - [1-9]*) - if [ $swap -gt $units_left ]; then - echo -n "Swap size is greater than remaining " - echo "free space on disk." - else - swap=$resp - fi - ;; - esac -done -swap_offset=`expr $root_offset + $root` -part_used=`expr $part_used + $swap` -echo "" - -fragsize=1024 -blocksize=8192 -$DONTDOIT fsck -t ffs /dev/rfd0a -$DONTDOIT mount -u /dev/fd0a / -cat /etc/disktab.preinstall > $DT -echo "" >> $DT -echo "$labelname|OpenBSD installation generated:\\" >> $DT -echo " :dt=${type}:ty=winchester:\\" >> $DT -echo -n " :nc#${cyls_per_disk}:ns#${sects_per_track}" >> $DT -echo ":nt#${tracks_per_cyl}:\\" >> $DT -echo " :se#${bytes_per_sect}:${sect_fwd}\\" >> $DT -_size=`expr $root \* $sizemult` -_offset=`expr $root_offset \* $sizemult` -echo -n " :pa#${_size}:oa#${_offset}" >> $DT -echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >> $DT -_size=`expr $swap \* $sizemult` -_offset=`expr $swap_offset \* $sizemult` -echo " :pb#${_size}:ob#${_offset}:tb=swap:\\" >> $DT -_size=`expr $partition \* $sizemult` -_offset=`expr $part_offset \* $sizemult` -echo " :pc#${_size}:oc#${_offset}:\\" >> $DT - -echo "You will now have to enter information about any other partitions" -echo "to be created in the OpenBSD portion of the disk. This process will" -echo "be complete when you've filled up all remaining space in the OpenBSD" -echo "portion of the disk." - -while [ $part_used -lt $partition ]; do - part_size=0 - units_left=`expr $partition - $part_used` - while [ $part_size -eq 0 ]; do - echo "" - echo -n "$units_left $sizeunit remaining in OpenBSD portion of " - echo "the disk" - echo -n "Next partition size (in $sizeunit)? " - getresp - case $resp in - [1-9]*) - total=`expr $part_used + $resp` - if [ $total -gt $partition ]; then - echo -n "That would make the partition" - echo "too large to fit!" - else - part_size=$resp - part_used=$total - part_name="" - while [ "$part_name" = "" ]; do - echo -n "Mount point? " - getresp - part_name=$resp - done - fi - ;; - esac - done - if [ "$ename" = "" ]; then - ename=$part_name - offset=`expr $part_offset + $root + $swap` - _size=`expr $part_size \* $sizemult` - _offset=`expr $offset \* $sizemult` - echo -n " :pe#${_size}:oe#${_offset}" >> $DT - echo ":te=4.2BSD:be#${blocksize}:fe#${fragsize}:\\" >> $DT - offset=`expr $offset + $part_size` - elif [ "$fname" = "" ]; then - fname=$part_name - _size=`expr $part_size \* $sizemult` - _offset=`expr $offset \* $sizemult` - echo -n " :pf#${_size}:of#${_offset}" >> $DT - echo ":tf=4.2BSD:bf#${blocksize}:ff#${fragsize}:\\" >> $DT - offset=`expr $offset + $part_size` - elif [ "$gname" = "" ]; then - gname=$part_name - _size=`expr $part_size \* $sizemult` - _offset=`expr $offset \* $sizemult` - echo -n " :pg#${_size}:og#${_offset}" >> $DT - echo ":tg=4.2BSD:bg#${blocksize}:fg#${fragsize}:\\" >> $DT - offset=`expr $offset + $part_size` - elif [ "$hname" = "" ]; then - hname=$part_name - _size=`expr $part_size \* $sizemult` - _offset=`expr $offset \* $sizemult` - echo -n " :ph#${_size}:oh#${_offset}" >> $DT - echo ":th=4.2BSD:bh#${blocksize}:fh#${fragsize}:\\" >> $DT - part_used=$partition - fi -done -echo " :pd#${disksize}:od#0:" >> $DT -sync - -echo "" -echo "THIS IS YOUR LAST CHANCE!!!" -echo "" -echo -n "Are you SURE you want OpenBSD installed on your hard drive? (yes/no) " -answer="" -while [ "$answer" = "" ]; do - getresp - case $resp in - yes|YES) - echo "" - echo "Here we go..." - answer=yes - ;; - no|NO) - echo "" - echo -n "OK, then. enter 'halt' to halt the machine. " - echo "Once the machine has halted," - echo -n "remove the floppy, and press any key to " - echo "reboot." - exit - ;; - *) - echo -n "I want a yes or no answer... well? " - ;; - esac -done - -echo "" -echo -n "Labeling disk $drivename..." -$DONTDOIT disklabel -w -B $drivename $labelname -echo " done." - -if [ "$sect_fwd" = "sf:" ]; then - echo -n "Initializing bad144 badblock table..." - $DONTDOIT bad144 $drivename 0 - echo " done." -fi - -echo "Initializing root filesystem, and mounting..." -$DONTDOIT newfs /dev/r${drivename}a -$DONTDOIT mount -v /dev/${drivename}a /mnt -if [ "$ename" != "" ]; then - echo "" - echo "Initializing $ename filesystem, and mounting..." - $DONTDOIT newfs /dev/r${drivename}e - $DONTDOIT mkdir -p /mnt/$ename - $DONTDOIT mount -v /dev/${drivename}e /mnt/$ename -fi -if [ "$fname" != "" ]; then - echo "" - echo "Initializing $fname filesystem, and mounting..." - $DONTDOIT newfs /dev/r${drivename}f - $DONTDOIT mkdir -p /mnt/$fname - $DONTDOIT mount -v /dev/${drivename}f /mnt/$fname -fi -if [ "$gname" != "" ]; then - echo "" - echo "Initializing $gname filesystem, and mounting..." - $DONTDOIT newfs /dev/r${drivename}g - $DONTDOIT mkdir -p /mnt/$gname - $DONTDOIT mount -v /dev/${drivename}g /mnt/$gname -fi -if [ "$hname" != "" ]; then - echo "" - echo "Initializing $hname filesystem, and mounting..." - $DONTDOIT newfs /dev/r${drivename}h - $DONTDOIT mkdir -p /mnt/$hname - $DONTDOIT mount -v /dev/${drivename}h /mnt/$hname -fi - -echo "" -echo "Populating filesystems with bootstrapping binaries and config files" -$DONTDOIT tar -cfX - . | (cd /mnt ; tar -xpf - ) -$DONTDOIT cp /tmp/.hdprofile /mnt/.profile - -echo "" -echo -n "Creating an fstab..." -echo /dev/${drivename}a / ffs rw 1 1 | sed -e s,//,/, > $FSTAB -if [ "$ename" != "" ]; then - echo /dev/${drivename}e /$ename ffs rw 1 2 | sed -e s,//,/, >> $FSTAB -fi -if [ "$fname" != "" ]; then - echo /dev/${drivename}f /$fname ffs rw 1 3 | sed -e s,//,/, >> $FSTAB -fi -if [ "$gname" != "" ]; then - echo /dev/${drivename}g /$gname ffs rw 1 4 | sed -e s,//,/, >> $FSTAB -fi -if [ "$hname" != "" ]; then - echo /dev/${drivename}h /$hname ffs rw 1 5 | sed -e s,//,/, >> $FSTAB -fi -sync -echo " done." - -echo "" -echo "" -echo "OK! The preliminary work of setting up your disk is now complete." -echo "" -echo "The remaining tasks are:" -echo "" -echo "To copy a OpenBSD kernel to the hard drive's root filesystem." -echo "Once accomplished, you can boot off the hard drive." -echo "" -echo "To load and install the OpenBSD distribution sets." -echo "Currently the hard drive's root filesystem is mounted on /mnt" -echo "" -echo "Consult the installation notes which will describe how to" -echo "install the distribution sets and kernel. Post-installation" -echo "configuration is also discussed therein." -echo "" -echo "GOOD LUCK!" -echo "" diff --git a/distrib/arc/floppies/inst/list b/distrib/arc/floppies/inst/list deleted file mode 100644 index f8e23a78b3a..00000000000 --- a/distrib/arc/floppies/inst/list +++ /dev/null @@ -1,11 +0,0 @@ -# $OpenBSD: list,v 1.2 2000/03/01 22:09:57 todd Exp $ - -# the disktab explanation file -COPY disktab.preinstall etc/disktab.preinstall - -# and the installation tools -COPY dot.profile .profile -COPY dot.instutils .instutils -COPY install.sh install -#COPY dot.hdprofile tmp/.hdprofile -SPECIAL chmod 755 install diff --git a/distrib/arc/floppies/kernel/Makefile b/distrib/arc/floppies/kernel/Makefile deleted file mode 100644 index ad4143378b2..00000000000 --- a/distrib/arc/floppies/kernel/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# $OpenBSD: Makefile,v 1.5 1997/09/26 02:20:39 millert Exp $ - -.include "../Makefile.inc" - -MOUNT_POINT?= /mnt -VND?= svnd0 -VND_DEV= /dev/${VND}c -VND_RDEV= /dev/r${VND}c -IMAGE= kc${REV}.fs -PID!= echo $$$$ -REALIMAGE!= echo /var/tmp/image.${PID} -MDEC= ${DESTDIR}/usr/mdec - -LISTS= ${.CURDIR}/list - -bsd: - cd ${.CURDIR}/../../../../sys/arch/sparc/conf && config FLOPPY - cd ${.CURDIR}/../../../../sys/arch/sparc/compile/FLOPPY && \ - make clean && make - cp ${.CURDIR}/../../../../sys/arch/sparc/compile/FLOPPY/bsd bsd - -all: bsd - dd if=/dev/zero of=${REALIMAGE} bs=10k count=144 - vnconfig -v -c ${VND} ${REALIMAGE} - disklabel -w ${VND} floppy - newfs -O -m 0 -o space -i 8192 -c 80 ${VND_RDEV} - mount ${VND_DEV} ${MOUNT_POINT} - TOPDIR=${.CURDIR}/.. CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - TARGDIR=${MOUNT_POINT} sh ${.CURDIR}/../runlist.sh ${LISTS} - install -c -o root -g wheel -m 0440 ${MDEC}/boot ${MOUNT_POINT}/boot - installboot -v ${MOUNT_POINT}/boot ${MDEC}/bootxx ${VND_RDEV} - mtree -def ${.CURDIR}/mtree.conf -p ${MOUNT_POINT}/ -u - df -i ${MOUNT_POINT} - umount ${MOUNT_POINT} - vnconfig -u ${VND_DEV} - cp ${REALIMAGE} ${IMAGE} - rm ${REALIMAGE} - -unconfig: - -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND_DEV} - -/bin/rm -f ${IMAGE} - -clean cleandir: - /bin/rm -f ${IMAGE} - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> diff --git a/distrib/arc/floppies/kernel/list b/distrib/arc/floppies/kernel/list deleted file mode 100644 index 0ab635afd79..00000000000 --- a/distrib/arc/floppies/kernel/list +++ /dev/null @@ -1,4 +0,0 @@ -# $OpenBSD: list,v 1.2 2000/03/01 22:09:57 todd Exp $ - -# copy the kernel -COPY ${OBJDIR}/bsd bsd diff --git a/distrib/arc/floppies/kernel/mtree.conf b/distrib/arc/floppies/kernel/mtree.conf deleted file mode 100644 index 730547e1f3f..00000000000 --- a/distrib/arc/floppies/kernel/mtree.conf +++ /dev/null @@ -1,6 +0,0 @@ -# $OpenBSD: mtree.conf,v 1.2 2000/03/01 22:09:57 todd Exp $ - -/set type=dir uname=root gname=wheel mode=0755 -# . -. - diff --git a/distrib/arc/floppies/upgr/Makefile b/distrib/arc/floppies/upgr/Makefile deleted file mode 100644 index 278c9c041a0..00000000000 --- a/distrib/arc/floppies/upgr/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2000/03/01 22:09:57 todd Exp $ - -TOP= ${.CURDIR}/.. - -.include "${TOP}/Makefile.inc" -IMAGE= upgr${REV}.fs - -.include "${TOP}/inst-common/Makefile.inc" diff --git a/distrib/arc/floppies/upgr/dot.hdprofile b/distrib/arc/floppies/upgr/dot.hdprofile deleted file mode 100644 index 8ca2e497e63..00000000000 --- a/distrib/arc/floppies/upgr/dot.hdprofile +++ /dev/null @@ -1,61 +0,0 @@ -# $OpenBSD: dot.hdprofile,v 1.1 1996/10/10 10:06:21 deraadt Exp $ -# -# 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=pc3 -export TERM - -umask 022 - -if [ "X${DONEPROFILE}" = "X" ]; then - DONEPROFILE=YES - - echo "Checking filesystems..." - fsck -y - - echo "Mounting filesystems..." - mount -a - - # set up some sane defaults - echo 'erase ^?, werase ^W, kill ^U, intr ^C' - stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 - echo '' - - # run update, so that installed software is written as it goes. - update - - # pull in the functions that people will use from the shell prompt. - . /.commonutils - . /.upgrutils - - echo "Follow the installation directions to install the OpenBSD" - echo "distribution sets." -fi diff --git a/distrib/arc/floppies/upgr/dot.profile b/distrib/arc/floppies/upgr/dot.profile deleted file mode 100644 index 6a38276d010..00000000000 --- a/distrib/arc/floppies/upgr/dot.profile +++ /dev/null @@ -1,58 +0,0 @@ -# $OpenBSD: dot.profile,v 1.5 2000/10/25 16:38:15 millert Exp $ -# -# 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. -# - -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:/ -export HISTFILE=/.sh_history -export TERM=pc3 - -umask 022 - -set -o emacs # emacs-style command line editing -alias dmesg="cat /kern/msgbuf" - -if [ "X${DONEPROFILE}" = "X" ]; then - DONEPROFILE=YES - - # set up some sane defaults - echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' - stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T 9600 - echo '' - - # run update, so that installed software is written as it goes. - update - - # pull in the functions that people will use from the shell prompt. - . /.commonutils - . /.upgrutils - - # run the upgrade script. - upgrade -fi diff --git a/distrib/arc/floppies/upgr/dot.upgrutils b/distrib/arc/floppies/upgr/dot.upgrutils deleted file mode 100644 index 2ffc1938fd6..00000000000 --- a/distrib/arc/floppies/upgr/dot.upgrutils +++ /dev/null @@ -1,57 +0,0 @@ -# $OpenBSD: dot.upgrutils,v 1.1 1996/10/10 10:06:24 deraadt Exp $ -# -# 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. - -# Upgrade cleanup utilites (functions), to make sure a recently-upgraded -# system is safely runnable. These are meant to be invoked from the shell -# prompt, by people installing OpenBSD. - -Cleanup() -{ - upgrade_dir=/ - - if [ ! -f /etc/fstab ]; then - upgrade_dir=/mnt - fi - - echo "Cleaning up miscellaneous files in /etc..." - mv $upgrade_dir/etc/rc.bak $upgrade_dir/etc/rc - chroot $upgrade_dir /usr/sbin/pwd_mkdb -p /etc/master.passwd - chroot $upgrade_dir /bin/rm /etc/sendmail.fc > /dev/null 2>&1 - sync - echo "Done." - - echo "" - echo "All that's left to do now is to install a new OpenBSD kernel" - echo "on your hard disk. You should now halt your machine using" - echo "the 'halt' command. Once the machine is halted, replace the" - echo "installation floppy with the kernel-copy floppy and hit any" - echo "key to reboot. Use the kernel-copy floppy to copy a kernel" - echo "to your hard disk." -} diff --git a/distrib/arc/floppies/upgr/list b/distrib/arc/floppies/upgr/list deleted file mode 100644 index 8b5fd2bc332..00000000000 --- a/distrib/arc/floppies/upgr/list +++ /dev/null @@ -1,8 +0,0 @@ -# $OpenBSD: list,v 1.2 2000/03/01 22:09:58 todd Exp $ - -# and the upgrade tools -COPY dot.profile .profile -COPY dot.upgrutils .upgrutils -COPY upgrade.sh upgrade -COPY dot.hdprofile tmp/.hdprofile -SPECIAL chmod 755 upgrade diff --git a/distrib/arc/floppies/upgr/upgrade.sh b/distrib/arc/floppies/upgr/upgrade.sh deleted file mode 100644 index 91714f41063..00000000000 --- a/distrib/arc/floppies/upgr/upgrade.sh +++ /dev/null @@ -1,252 +0,0 @@ -#!/bin/sh -# $OpenBSD: upgrade.sh,v 1.1 1996/10/10 10:06:27 deraadt Exp $ -# -# 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. - -# OpenBSD upgrade script. -# In a perfect world, this would be a nice C program, with a reasonable -# user interface. - -DT=/etc/disktab # /etc/disktab -FSTABDIR=/mnt/etc # /mnt/etc -#DONTDOIT=echo - -VERSION=1.0 -FSTAB=${FSTABDIR}/fstab - -getresp() { - read resp - if [ "X$resp" = "X" ]; then - resp=$1 - fi -} - -echo "Welcome to the OpenBSD ${VERSION} upgrade program." -echo "" -echo "This program is designed to help you put the new version of OpenBSD" -echo "on your hard disk, in a simple and rational way. To upgrade, you" -echo "must have plenty of free space on all partitions which will be" -echo "upgraded. If you have at least 1MB free on your root partition," -echo "and several free on your /usr patition, you should be fine." -echo "" -echo "As with anything which modifies your hard drive's contents, this" -echo "program can cause SIGNIFICANT data loss, and you are advised" -echo "to make sure your hard drive is backed up before beginning the" -echo "upgrade process." -echo "" -echo "Default answers are displyed in brackets after the questions." -echo "You can hit Control-C at any time to quit, but if you do so at a" -echo "prompt, you may have to hit return. Also, quitting in the middle of" -echo "the upgrade may leave your system in an inconsistent (and unusable)" -echo "state." -echo "" -echo -n "Proceed with upgrade? [n] " -getresp "n" -case "$resp" in - y*|Y*) - echo "Cool! Let's get to it..." - ;; - *) - echo "" - echo "OK, then. Enter 'halt' at the prompt to halt the" - echo "machine. Once the machine has halted, remove the" - echo "floppy and press any key to reboot." - exit - ;; -esac - -# find out what units are possible, and query the user. -driveunits=`ls /dev/[sw]d?a | sed -e 's,/dev/\(...\)a,\1,g'` -if [ "X${driveunits}" = "X" ]; then - echo "FATAL ERROR:" - echo "No disk devices." - echo "This is probably a bug in the install disks." - echo "Exiting install program." - exit -fi - -echo "" -echo "The following disks are supported by this upgrade procedure:" -echo " "${driveunits} -echo "If your system was previously completely contained within the" -echo "disks listed above (i.e. if your system didn't occupy any space" -echo "on disks NOT listed above), this upgrade disk can upgrade your" -echo "system. If it cannot, hit Control-C at the prompt." -echo "" -while [ "X${drivename}" = "X" ]; do - echo -n "Which disk contains your root partion? " - getresp - otherdrives=`echo "${driveunits}" | sed -e s,${resp},,` - if [ "X${driveunits}" = "X${otherdrives}" ]; then - echo "" - echo "\"${resp}\" is an invalid drive name. Valid choices" - echo "are: "${driveunits} - echo "" - else - drivename=${resp} - fi -done - -echo "" -echo "Root partition is on ${drivename}a." - -echo "" -echo "Would you like to upgrade your file systems to the new file system" -echo -n "format? [y] " -getresp "y" -case "$resp" in - n*|N*) - echo "" - echo "You should upgrade your file systems with 'fsck -c 2'" - echo "as soon as is feasible, because the new file system" - echo "code is better-tested and more performant." - upgradefs=NO - ;; - *) - upgradefs=YES - ;; -esac - -if [ $upgradefs = YES ]; then - echo "" - echo "Upgrading the file system on ${drivename}a..." - - fsck -p -c 2 /dev/r${drivename}a - if [ $? != 0 ]; then - echo "FATAL ERROR: FILE SYSTEM UPGRADE FAILED." - echo "You should probably reboot the machine, fsck your" - echo "disk(s), and try the upgrade procedure again." - exit 1 - fi - echo "Done." -fi - -echo "" -echo "Mounting root partition on /mnt..." -mount /dev/${drivename}a /mnt -if [ $? != 0 ]; then - echo "FATAL ERROR: MOUNT FAILED." - echo "You should verify that your system is set up as you" - echo "described, and re-attempt the upgrade procedure." - exit 1 -fi -echo "Done." - -if [ $upgradefs = YES ]; then - echo "" - echo -n "Copying new fsck binary to your hard disk..." - if [ ! -d /mnt/sbin ]; then - mkdir /mnt/sbin - fi - cp /sbin/fsck /mnt/sbin/fsck - if [ $? != 0 ]; then - echo "FATAL ERROR: COPY FAILED." - echo "It in unclear why this error would occur. It looks" - echo "like you may end up having to upgrade by hand." - exit 1 - fi - echo " Done." - - echo "" - echo "Re-mounting root partition read-only..." - mount -u -o ro /dev/${drivename}a /mnt - if [ $? != 0 ]; then - echo "FATAL ERROR: RE-MOUNT FAILED." - echo "It in unclear why this error would occur. It looks" - echo "like you may end up having to upgrade by hand." - exit 1 - fi - echo "Done." - - echo "" - echo "Upgrading the rest of your file systems..." - chroot /mnt fsck -p -c 2 - if [ $? != 0 ]; then - echo "FATAL ERROR: FILE SYSTEM UPGRADE(S) FAILED." - echo "You should probably reboot the machine, fsck your" - echo "file system(s), and try the upgrade procedure" - echo "again." - exit 1 - fi - echo "Done." - - echo "" - echo "Re-mounting root partition read-write..." - mount -u -o rw /dev/${drivename}a /mnt - if [ $? != 0 ]; then - echo "FATAL ERROR: RE-MOUNT FAILED." - echo "It in unclear why this error would occur. It looks" - echo "like you may end up having to upgrade by hand." - exit 1 - fi - echo "Done." -fi - -echo "" -echo "Updating boot blocks on ${drivename}..." -disklabel -r $drivename > /mnt/tmp/${drivename}.label -if [ $? != 0 ]; then - echo "FATAL ERROR: READ OF DISK LABEL FAILED." - echo "It in unclear why this error would occur. It looks" - echo "like you may end up having to upgrade by hand." - exit 1 -fi -disklabel -R -B $drivename /mnt/tmp/${drivename}.label -if [ $? != 0 ]; then - echo "FATAL ERROR: UPDATE OF DISK LABEL FAILED." - echo "It in unclear why this error would occur. It looks" - echo "like you may end up having to upgrade by hand." - exit 1 -fi -echo "Done." - -echo "" -echo "Copying bootstrapping binaries and config files to the hard drive..." -$DONTDOIT cp /mnt/.profile /mnt/.profile.bak -$DONTDOIT pax -rw -X -k . /mnt -$DONTDOIT mv /mnt/etc/rc /mnt/etc/rc.bak -$DONTDOIT cp /tmp/.hdprofile /mnt/.profile - -echo "" -echo "Mounting remaining partitions..." -chroot /mnt mount -at ufs > /dev/null 2>&1 -echo "Done." - -echo "" -echo "" -echo "OK! The preliminary work of setting up your disk is now complete," -echo "and you can now upgrade the actual OpenBSD software." -echo "" -echo "Right now, your hard disk is mounted on /mnt. You should consult" -echo "the installation notes to determine how to load and install the new" -echo "OpenBSD distribution sets, and how to clean up after the upgrade" -echo "software, when you are done." -echo "" -echo "GOOD LUCK!" -echo "" diff --git a/distrib/arc/list2sh.awk b/distrib/arc/list2sh.awk deleted file mode 100644 index 7d732453385..00000000000 --- a/distrib/arc/list2sh.awk +++ /dev/null @@ -1,71 +0,0 @@ -# $OpenBSD: list2sh.awk,v 1.1 1997/05/14 21:15:45 pefo Exp $ - -BEGIN { - printf("cd ${CURDIR}\n"); - printf("\n"); -} -/^$/ || /^#/ { - print $0; - next; -} -$1 == "COPY" { - printf("echo '%s'\n", $0); - printf("rm -fr ${TARGDIR}/%s\n", $3); - printf("cp %s ${TARGDIR}/%s\n", $2, $3); - next; -} -$1 == "LINK" { - printf("echo '%s'\n", $0); - for (i = 3; i <= NF; i++) { - printf("rm -f ${TARGDIR}/%s\n", $i); - printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $i); - } - next; -} -$1 == "SYMLINK" { - printf("echo '%s'\n", $0); - for (i = 3; i <= NF; i++) { - printf("rm -f ${TARGDIR}/%s\n", $i); - printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $i); - } - next; -} -$1 == "ARGVLINK" { - # crunchgen directive; ignored here - next; -} -$1 == "SRCDIRS" { - # crunchgen directive; ignored here - next; -} -$1 == "CRUNCHSPECIAL" { - # crunchgen directive; ignored here - 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; -} diff --git a/distrib/arc/ramdisk/Makefile b/distrib/arc/ramdisk/Makefile deleted file mode 100644 index a32371e5c33..00000000000 --- a/distrib/arc/ramdisk/Makefile +++ /dev/null @@ -1,104 +0,0 @@ -# $OpenBSD: Makefile,v 1.8 1997/09/26 02:20:41 millert Exp $ - -# NOTE! We don't do crunched yet! - -TOP= ${.CURDIR}/.. - -.include "${TOP}/Makefile.inc" -BSD_RD= bsd.rd -IMAGE= mr.fs -CBIN?= instbin -LISTS= ${.CURDIR}/list -UTILS?= ${.CURDIR}/../../miniroot - -MOUNT_POINT= /mnt -MTREE= ${.CURDIR}/mtree.conf - -VND?= svnd0 -VND_DEV= /dev/${VND}a -VND_RDEV= /dev/r${VND}a -VND_CRDEV= /dev/r${VND}c -PID!= echo $$$$ -REALIMAGE!= echo /var/tmp/image.${PID} - - -DISKTYPE= rdroot -NBLKS= 8192 -# minfree, opt, b/i trks, sects, cpg -NEWFSARGS= -m 0 -o space -c 16 -i 4096 - -.ifndef DESTDIR -all ${IMAGE}: - @echo setenv DESTDIR before makeing a ramdisk! - @false -.else - -all: ${BSD_RD} - -${BSD_RD}: ${CBIN} ${IMAGE} bsd rdsetroot - cp bsd ${BSD_RD}.elf - ${.OBJDIR}/rdsetroot ${BSD_RD}.elf < ${IMAGE} - elf2ecoff ${BSD_RD}.elf ${BSD_RD} - rm ${IMAGE} - -${IMAGE}: rd_setup do_files rd_teardown - -.endif - -bsd: - cd ${.TOP}/../../sys/arch/arc/conf && config RAMDISK - cd ${.TOP}/../../sys/arch/arc/compile/RAMDISK && \ - make clean && make - cp ${.TOP}/../../sys/arch/arc/compile/RAMDISK/bsd bsd - -rd_setup: - dd if=/dev/zero of=${REALIMAGE} bs=512 count=${NBLKS} - vnconfig -v -c ${VND} ${REALIMAGE} - disklabel -w -r ${VND} ${DISKTYPE} - newfs ${NEWFSARGS} ${VND_RDEV} - fsck ${VND_RDEV} - mount ${VND_DEV} ${MOUNT_POINT} - -rd_teardown: - @df -i ${MOUNT_POINT} - -umount ${MOUNT_POINT} - -vnconfig -u ${VND} - cp ${REALIMAGE} ${IMAGE} - rm ${REALIMAGE} - -rdsetroot: ${TOP}/common/rdsetroot.c - ${HOSTCC} -DDEBUG -o rdsetroot ${TOP}/common/rdsetroot.c - -unconfig: - -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND} - -/bin/rm -f ${IMAGE} - -.PRECIOUS: ${IMAGE} - -install: - cp ${BSD_RD} ${DESTDIR}/snapshot/${BSD_RD} - -${CBIN}.conf: ${LISTS} - awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CBIN}.conf - -${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CBIN}.conf - crunchgen -E -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${CBIN}.conf - -${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c - make -f ${CBIN}.mk all - -do_files: - mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u - TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ - REV=${REV} TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS} - -clean cleandir: - /bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.conf ${CBIN}.mk ${CBIN}.cache \ - *.o *.lo *.c bsd ${BSD_RD} ${BSD_RD}.elf rdsetroot - -beforeinstall: - cp ${BSD.RD} ${DESTDIR}/snapshot - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> diff --git a/distrib/arc/ramdisk/dot.instutils b/distrib/arc/ramdisk/dot.instutils deleted file mode 100644 index d21ec447979..00000000000 --- a/distrib/arc/ramdisk/dot.instutils +++ /dev/null @@ -1,156 +0,0 @@ -# $OpenBSD: dot.instutils,v 1.1 1997/05/14 20:52:44 pefo Exp $ -# -# 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. - -# Installation configuration utilites (functions), to get OpenBSD configured -# reasonably once it is installed on the hard disk. These are meant to be -# invoked from the shell prompt, by people installing OpenBSD. - -Configure() -{ - DEV=/dev - ETC=/etc - if [ ! -f /etc/fstab ]; then - DEV=/mnt/dev - ETC=/mnt/etc - fi - - echo "You will now be prompted for information about this" - echo "machine. If you hit return, the default answer (in" - echo "brackets) will be used." - - echo "" - echo -n "What is this machine's hostname? [unknown.host.domain] " - read hname - if [ "$hname" = "" ]; then - hname=unknown.host.domain - fi - echo $hname > ${ETC}/myname - proto_domain=`echo $hname | sed -e 's/[^.]*\.//'` - - echo "" - echo "What domain is this machine in (this is NOT its YP" - echo -n "domain name)? [$proto_domain] " - read dname - if [ "$dname" = "" ]; then - dname=$proto_domain - fi - - echo "" - if [ -e $ETC/sendmail.cf ]; then - echo "WARNING: A default sendmail.cf exists, and probably" - echo "needs to be tuned and/or replaced, to work properly at" - echo "your site!" - else - echo "WARNING: No default sendmail.cf installed. Did you" - echo "forget to install the 'etc' distribution?" - fi - - echo "127.0.0.1 localhost localhost.$dname" > ${ETC}/hosts - - echo "" - echo -n "Does this machine have an ethernet interface? [y] " - read resp - case "$resp" in - n*) - ;; - *) - intf= - while [ "$intf" = "" ]; do - echo -n "What is the primary interface name " - echo -n "(e.g. ed0, ep0, etc)? " - read intf - done - echo -n "What is the hostname for this interface? [$hname] " - read ifname - if [ "$ifname" = "" ]; then - ifname=$hname - fi - ifaddr= - while [ "$ifaddr" = "" ]; do - echo -n "What is the IP address associated with " - echo -n "interface ${intf}? " - read ifaddr - done - echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \ - >> ${ETC}/hosts - - echo -n "Does this interface have a special netmask? [n] " - read resp - case "$resp" in - y*) - echo -n "What is the netmask? [0xffffff00] " - read ifnetmask - if [ "$ifnetmask" = "" ]; then - ifnetmask=0xffffff00 - fi - ;; - *) - ifnetmask= - ;; - esac - - echo -n "Does this interface need additional flags? [n] " - read resp - case "$resp" in - y*) - echo -n "What flags? [link0] " - read ifflags - if [ "$ifflags" = "" ]; then - ifflags=link0 - fi - ;; - *) - ifflags= - ;; - esac - echo "inet $ifname $ifnetmask $ifflags" > ${ETC}/hostname.$intf - - echo "" - echo -n "WARNING: if you have any more ethernet interfaces, " - echo "you will have to configure" - echo -n "them by hand. Read the comments in /etc/netstart to " - echo "learn how to do this." - ;; - esac - - echo "" - echo -n "Making device nodes (may take a while)..." - cd ${DEV} - sh MAKEDEV all - echo " done." - - sync - - echo "" - echo "If you haven't already installed a kernel on the hard drive" - echo "using your kernel-copy floppy, do so now. Kernel" - echo "installation instructions can be found in the" - echo "installation notes." -} diff --git a/distrib/arc/ramdisk/dot.profile b/distrib/arc/ramdisk/dot.profile deleted file mode 100644 index 939a106d9fa..00000000000 --- a/distrib/arc/ramdisk/dot.profile +++ /dev/null @@ -1,59 +0,0 @@ -# $OpenBSD: dot.profile,v 1.5 2000/10/25 16:38:16 millert Exp $ -# -# 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. -# - -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:/ -export HISTFILE=/.sh_history -export HOME=/ - -umask 022 - -set -o emacs # emacs-style command line editing -alias dmesg="cat /kern/msgbuf" - -if [ "X${DONEPROFILE}" = "X" ]; then - DONEPROFILE=YES - - # set up some sane defaults - echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' - stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T 9600 - echo '' - - mount /dev/rd0a / - - # mount the kern_fs so that we can examine the dmesg state - mount -t kernfs /kern /kern - - # pull in the functions that people will use from the shell prompt. - . /.instutils - - echo "Follow the installation directions to install or upgrade" - echo "the OpenBSD distribution sets." -fi diff --git a/distrib/arc/ramdisk/install.md b/distrib/arc/ramdisk/install.md deleted file mode 100644 index 7e45b895f61..00000000000 --- a/distrib/arc/ramdisk/install.md +++ /dev/null @@ -1,423 +0,0 @@ -# $OpenBSD: install.md,v 1.15 2001/01/25 19:18:37 deraadt Exp $ -# -# -# Copyright rc) 1996 The NetBSD Foundation, Inc. -# All rights reserved. -# -# This code is derived from software contributed to The NetBSD Foundation -# by Jason R. Thorpe. -# -# 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 the NetBSD -# Foundation, Inc. and its contributors. -# 4. Neither the name of The NetBSD Foundation 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 BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -# ``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 REGENTS OR CONTRIBUTORS 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. -# - -# -# machine dependent section of installation/upgrade script. -# - -# Machine-dependent install sets -MDSETS="kernel" - -md_set_term() { - if [ ! -z "$TERM" ]; then - return - fi - echo -n "Specify terminal type [pc3]: " - getresp "pc3" - TERM="$resp" - export TERM -} - -md_makerootwritable() { -} - -md_machine_arch() { - cat /kern/machine -} - -md_machine_model() { - cat /kern/model -} - -md_get_diskdevs() { - # return available disk devices - egrep -a "^[sw]d[0-9] " /kern/msgbuf | cut -d" " -f1 | sort -u -} - -md_get_cddevs() { - # return available CDROM devices - egrep -a "^cd[0-9] " /kern/msgbuf | cut -d" " -f1 | sort -u -} - -md_get_partition_range() { - # return range of valid partition letters - echo "[a-p]" -} - -md_questions() { - : -} - -md_installboot() { - local model - - model=`md_machine_model` - case "$model" in - Algor*) - ;; - *) - echo "Installing bootable kernel in the msdos partition /dev/${1}i" - if mount -t msdos /dev/${1}i /mnt2 ; then - elf2ecoff /mnt/bsd /mnt2/bsd - umount /mnt2 - else - echo "Failed, you will not be able to boot from /dev/${1}." - fi - ;; - esac - echo "Building dynamic libraries cache" - /mnt/sbin/ldconfig -f /mnt/etc/ld.so.cache -P /mnt -} - -md_native_fstype() { - local model - - model=`md_machine_model` - case "$model" in - Algor*) - ;; - *) - echo "msdos" - ;; - esac -} - -md_native_fsopts() { - local model - - model=`md_machine_model` - case "$model" in - Algor*) - ;; - *) - echo "ro" - ;; - esac -} - -md_init_mbr() { - # $1 is the disk to init - echo - echo "You will now be asked if you want to initialize the disk with a 5Mb" - echo "MSDOS partition. This is the recommended setup and will allow you to" - echo "store about three to four different bootable kernels on the disk." - echo "If you want to have a different setup, exit 'install' now and do" - echo "the MBR initialization by hand using the 'fdisk' program. You may" - echo "also use any vendor specific program to set up the disk. Consult" - echo "your ARC system manuals for doing setup this way." - echo - echo -n "Do you want to init the MBR and the MSDOS partition? [y]" - getresp "y" - case "$resp" in - n*|N*) - exit 0;; - *) - echo - echo "An MBR record with an OpenBSD usable partition table will now be copied" - echo "to your disk. Unless you have special requirements you will not need" - echo "to edit this MBR. After the MBR is copied an empty 5Mb MSDOS partition" - echo "will be created on the disk. You *MUST* setup the OpenBSD disklabel" - echo "to have a partition covering this MSDOS partition." - echo "You will probably see a few '...: no disk label' messages" - echo "It's completely normal. The disk has no label yet." - echo "This will take a minute or two..." - sleep 2 - dd if=/usr/mdec/mbr of=/dev/r$1c >/dev/null 2>&1 - gunzip < /usr/mdec/msdos5mb.gz | dd of=/dev/r$1c bs=512 seek=32 >/dev/null 2>&1 - ;; - esac -} - -md_checkfordisklabel() { - # $1 is the disk to check - local rval - local model - - model=`md_machine_model` - case "$model" in - Algor*) - ;; - *) - echo - echo "ARC systems need an MBR and MSDOS partition on the bootable disk." - echo "This is necessary because the BIOS doesn't know nothing about" - echo "OpenBSD and has to boot the system from a file stored in the" - echo "MSDOS partition. Install will put a bootable kernel with the" - echo "name 'bsd' in there that you later should use to boot OpenBSD. " - echo - echo -n "Has this disk previously been used with DOS or Windows? [n]" - getresp "n" - case "$resp" in - n*|N*) - md_init_mbr $1;; - *) - echo - echo "You may keep your current setup if you want to be able to use any" - echo "already loaded OS. However you will be asked to prepare an empty" - echo "partition for OpenBSD later. There must also be ~1.5Mb free space" - echo "in the boot partition to hold the bootable OpenBSD kernel." - echo "Also note that the boot partition must be included as partition" - echo "'i' in the OpenBSD disklabel." - echo - echo -n "Do you want to keep the current MSDOS partition setup? [y]" - getresp "y" - case "$resp" in - n*|N*) - md_init_mbr $1;; - *) - ;; - esac - ;; - esac - ;; - esac - - disklabel -r $1 > /dev/null 2> /tmp/checkfordisklabel - if grep "no disk label" /tmp/checkfordisklabel; then - rval=1 - elif grep "disk label corrupted" /tmp/checkfordisklabel; then - rval=2 - else - rval=0 - fi - - rm -f /tmp/checkfordisklabel - return $rval -} - -md_prep_fdisk() -{ - local _disk - local _done - - _disk=$1 - echo - echo "This disk has not previously been used with OpenBSD. You may share" - echo "this disk with other operating systems (probably Windows/NT or" - echo "maybe Linux/Mips etc.) Anyhow, to be able to boot the system you" - echo "will need a small DOS partition in the beginning of the disk to" - echo "hold the bootable kernel. This has been taken care of if you chose" - echo "to do that initialization just before." - echo - echo "WARNING: Wrong information in the BIOS partition table might" - echo "render the disk unusable." - - echo -n "Press [Enter] to continue " - getresp "" - - echo - echo "Current partition information is:" - fdisk ${_disk} - echo -n "Press [Enter] to continue " - getresp "" - - _done=0 - while [ $_done = 0 ]; do - echo - cat << \__md_prep_fdisk_1 - -An OpenBSD partition should have type 166 (A6), and should be the only -partition marked as active. Also make sure that the size of the partition -to be used by OpenBSD is correct, otherwise OpenBSD disklabel installation -will fail. Furthermore, the partitions must NOT overlap each others. fdisk -will be started in update mode, and you will be able to add this information -as needed. If you make a mistake, exit fdisk without storing the new -information, and you will be allowed to start over. -__md_prep_fdisk_1 - echo -n "Press [Enter] to continue " - getresp "" - - fdisk -e ${_disk} - - echo - echo "The new partition information is:" - fdisk ${_disk} - - echo - echo "Is this information correct (if not, you will be permitted to " - echo -n "edit it again)? [n] " - getresp "n" - - case "$resp" in - n*|N*) ;; - *) _done=1 ;; - esac - done - - echo "Please take note of the offset and size of the OpenBSD partition" - echo "*AND* the MSDOS partitions you may want to access from OpenBSD." - echo "At least the MSDOS partition used for booting must be accessible" - echo "by OpenBSD as partition 'i'. You may need this information to " - echo "fill in the OpenBSD disk label later." - echo -n "Press [Enter] to continue " - getresp "" -} - -md_prep_disklabel() -{ - local _disk - - _disk=$1 - md_checkfordisklabel $_disk - case $? in - 0) - echo -n "Do you wish to edit the disklabel on $_disk? [y]" - ;; - 1) - md_prep_fdisk ${_disk} - echo "WARNING: Disk $_disk has no label" - echo -n "Do you want to create one with the disklabel editor? [y]" - ;; - 2) - echo "WARNING: Label on disk $_disk is corrupted" - echo -n "Do you want to try and repair the damage using the disklabel editor? [y]" - ;; - - esac - - getresp "y" - case "$resp" in - y*|Y*) ;; - *) return ;; - esac - - # display example - cat << \__md_prep_disklabel_1 - -Here is an example of what the partition information may look like once -you have entered the disklabel editor. Disk partition sizes and offsets -are in sector (most likely 512 bytes) units. You may set these size/offset -pairs on cylinder boundaries (the number of sector per cylinder is given -in the `sectors/cylinder' entry, which is not shown here). -Also, you *must* make sure that the 'i' partition points at the MSDOS -partition that will be used for booting. The 'c' partition shall start -at offset 0 and include the entire disk. This is most likely correct when -you see the default label in the editor. - -Do not change any parameters except the partition layout and the label name. - -[Example] -10 partitions: -# size offset fstype [fsize bsize cpg] - a: 120832 10240 4.2BSD 1024 8192 16 # (Cyl. 11*- 142*) - b: 131072 131072 swap # (Cyl. 142*- 284*) - c: 6265200 0 unused 1024 8192 # (Cyl. 0 - 6809) - e: 781250 262144 4.2BSD 1024 8192 16 # (Cyl. 284*- 1134*) - f: 1205000 1043394 4.2BSD 1024 8192 16 # (Cyl. 1134*- 2443*) - g: 2008403 2248394 4.2BSD 1024 8192 16 # (Cyl. 2443*- 4626*) - h: 2008403 4256797 4.2BSD 1024 8192 16 # (Cyl. 4626*- 6809*) - i: 10208 32 MSDOS # (Cyl. 0*- 11*) -[End of example] -__md_prep_disklabel_1 - echo -n "Press [Enter] to continue " - getresp "" - disklabel -W ${_disk} - disklabel ${_disk} >/tmp/label.$$ - disklabel -r -R ${_disk} /tmp/label.$$ - rm -f /tmp/label.$$ - disklabel -f /tmp/fstab.${_disk} -E ${_disk} -} - -md_welcome_banner() { -{ - if [ "$MODE" = "install" ]; then - echo "" - echo " Welcome to the OpenBSD/ARC ${VERSION} installation program." - cat << \__welcome_banner_1 - -This program is designed to help you put OpenBSD on your disk, -in a simple and rational way. You'll be asked several questions, -and it would probably be useful to have your disk's hardware -manual, the installation notes, and a calculator handy. -__welcome_banner_1 - - else - echo "" - echo " Welcome to the OpenBSD/ARC ${VERSION} upgrade program." - cat << \__welcome_banner_2 - -This program is designed to help you upgrade your OpenBSD system in a -simple and rational way. - -As a reminder, installing the `etc' binary set is NOT recommended. -Once the rest of your system has been upgraded, you should manually -merge any changes to files in the `etc' set into those files which -already exist on your system. -__welcome_banner_2 - fi - -cat << \__welcome_banner_3 - -As with anything which modifies your disk's contents, this -program can cause SIGNIFICANT data loss, and you are advised -to make sure your data is backed up before beginning the -installation process. - -Default answers are displayed in brackets after the questions. -You can hit Control-C at any time to quit, but if you do so at a -prompt, you may have to hit return. Also, quitting in the middle of -installation may leave your system in an inconsistent state. - -__welcome_banner_3 -} | more -} - -md_not_going_to_install() { - cat << \__not_going_to_install_1 - -OK, then. Enter `halt' at the prompt to halt the machine. Once the -machine has halted, power-cycle the system to load new boot code. - -__not_going_to_install_1 -} - -md_congrats() { - local what; - if [ "$MODE" = "install" ]; then - what="installed"; - else - what="upgraded"; - fi - cat << __congratulations_1 - -CONGRATULATIONS! You have successfully $what OpenBSD! -To boot the installed system, enter halt at the command prompt. Once the -system has halted, reset the machine and boot from the disk. - -__congratulations_1 -} diff --git a/distrib/arc/ramdisk/list b/distrib/arc/ramdisk/list deleted file mode 100644 index 2d0645dddfa..00000000000 --- a/distrib/arc/ramdisk/list +++ /dev/null @@ -1,97 +0,0 @@ -# $OpenBSD: list,v 1.11 2000/07/15 02:20:59 deraadt Exp $ - -SRCDIRS distrib/special -SRCDIRS usr.bin bin sbin usr.sbin gnu/usr.bin -SRCDIRS usr.bin/vi usr.sbin/pppd - -# copy the crunched binary, link to it, and kill it -COPY ${OBJDIR}/instbin instbin -LINK instbin bin/cat -LINK instbin bin/chmod bin/chgrp sbin/chown -LINK instbin bin/cp -LINK instbin bin/dd -LINK instbin bin/df -LINK instbin bin/ed -LINK instbin bin/expr -LINK instbin bin/hostname -LINK instbin bin/ln -LINK instbin bin/ls -LINK instbin bin/mkdir -LINK instbin bin/mt -LINK instbin bin/mv -LINK instbin bin/pax bin/tar bin/cpio -LINK instbin bin/rm -LINK instbin bin/ksh bin/sh -ARGVLINK ksh -sh -LINK instbin bin/sleep -LINK instbin bin/stty -LINK instbin bin/sync -LINK instbin bin/test bin/[ -LINK instbin sbin/disklabel -LINK instbin sbin/fdisk -LINK instbin sbin/fsck -LINK instbin sbin/fsck_ffs -LINK instbin sbin/reboot sbin/halt -LINK instbin sbin/ifconfig -LINK instbin sbin/init -LINK instbin sbin/mknod -LINK instbin sbin/mount -LINK instbin sbin/mount_cd9660 -LINK instbin sbin/mount_ffs -LINK instbin sbin/mount_msdos -LINK instbin sbin/mount_nfs -LINK instbin sbin/mount_kernfs -LINK instbin sbin/mount_ext2fs -LINK instbin sbin/newfs sbin/mount_mfs -LINK instbin sbin/ping -LINK instbin sbin/restore -LINK instbin sbin/route -LINK instbin sbin/slattach -LINK instbin sbin/scsi -LINK instbin sbin/umount -LINK instbin usr/bin/cut -LINK instbin usr/bin/grep usr/bin/fgrep usr/bin/egrep -LINK instbin usr/bin/elf2ecoff -LINK instbin usr/bin/ftp -LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat -LINK instbin usr/bin/less usr/bin/more -LINK instbin usr/bin/rsh -LINK instbin usr/bin/sed -LINK instbin usr/bin/sort -LINK instbin usr/bin/tip -LINK instbin usr/sbin/chat -LINK instbin usr/sbin/pppd -SYMLINK ../../instbin usr/bin/ftp -SYMLINK ../../instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat -SYMLINK ../../instbin usr/bin/sed -SYMLINK ../../instbin usr/bin/build usr/bin/vi - -# copy the MAKEDEV script and make some devices -COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV -SPECIAL cd dev; sh MAKEDEV ramdisk -SPECIAL /bin/rm dev/MAKEDEV - -# we need the contents of /usr/mdec -COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr -COPY ${DESTDIR}/usr/mdec/msdos5mb.gz usr/mdec/msdos5mb.gz - -# various files that we need in /etc for the install -COPY ${DESTDIR}/etc/group etc/group -COPY ${DESTDIR}/etc/protocols etc/protocols -COPY ${DESTDIR}/etc/services etc/services -COPY ${DESTDIR}/etc/spwd.db etc/spwd.db - -COPYDIR ${DESTDIR}/etc/ppp etc/ppp - -# and the common installation tools -COPY ${CURDIR}/termcap.pc3 usr/share/misc/termcap -COPY ${DESTDIR}/usr/share/misc/scsi_modes usr/share/misc/scsi_modes - -# and the installation tools -COPY dot.profile .profile -COPY dot.instutils .instutils -COPY install.md install.md -COPY ${CURDIR}/../../miniroot/install.sh install -COPY ${CURDIR}/../../miniroot/upgrade.sh upgrade -SPECIAL sed "/^VERSION=/s/=.*/=${REV}/" < ${CURDIR}/../../miniroot/install.sub > install.sub -SPECIAL chmod 755 install diff --git a/distrib/arc/ramdisk/mtree.conf b/distrib/arc/ramdisk/mtree.conf deleted file mode 100644 index 381547d2f63..00000000000 --- a/distrib/arc/ramdisk/mtree.conf +++ /dev/null @@ -1,95 +0,0 @@ -# $OpenBSD: mtree.conf,v 1.2 1997/05/19 10:33:22 pefo Exp $ - -/set type=dir uname=root gname=wheel mode=0755 -# . -. - -# ./bin -bin -# ./bin -.. - -# ./dev -dev -# ./dev -.. - -# ./etc -etc - -# ./etc/ppp -ppp -# ./etc/ppp -.. - -# ./etc -.. - -# ./mnt -mnt -# ./mnt -.. - -# ./mnt2 -mnt2 -# ./mnt2 -.. - -# ./kern -kern -# ./kern -.. - -# ./sbin -sbin -# ./sbin -.. - -# ./tmp -tmp mode=01777 -# ./tmp -.. - -# ./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 -.. - -# ./var -var - -# ./var/tmp -tmp mode=0177 - -# ./var/tmp -.. - -# ./var -.. diff --git a/distrib/arc/ramdisk/termcap.pc3 b/distrib/arc/ramdisk/termcap.pc3 deleted file mode 100644 index fd556be0d20..00000000000 --- a/distrib/arc/ramdisk/termcap.pc3 +++ /dev/null @@ -1,45 +0,0 @@ -# $OpenBSD: termcap.pc3,v 1.1 1997/05/14 20:52:46 pefo Exp $ -# -# Copyright (c) 1980, 1985, 1989 The Regents of the University of California. -# 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 the University of -# California, Berkeley and its contributors. -# 4. 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 BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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. -# -# @(#)termcap.src 5.109 (Berkeley) 3/8/93 -# -pc3|ibmpc3|IBM PC BSD/386 Console:\ - :am:bs:bw:eo:km:xo:\ - :Co#8:co#80:it#8:li#25:pa#64:\ - :AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\ - :Sb=\E[4%dm:Sf=\E[3%dm:UP=\E[%dA:al=\E[L:bl=^G:cd=\E[J:\ - :ce=\E[K:cl=\Ec:cm=\E[%i%d;%dH:cr=^M:dl=\E[M:do=^J:ho=\E[H:\ - :kH=\E[F:kI=\E[L:kN=\E[G:kP=\E[I:kb=^H:kd=\E[B:kh=\E[H:\ - :kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0m:\ - :mh=\E[=8F:mr=\E[7m:nd=\E[C:nw=^M^J:op=\E[x:rc=\E8:sc=\E7:\ - :se=\E[0m:sf=^J:so=\E[7m:ta=^I:up=\E[A: diff --git a/distrib/arc/runlist.sh b/distrib/arc/runlist.sh deleted file mode 100644 index a7d17019b75..00000000000 --- a/distrib/arc/runlist.sh +++ /dev/null @@ -1,13 +0,0 @@ -# $OpenBSD: runlist.sh,v 1.2 1997/05/18 13:40:45 pefo 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} |