summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-31 23:05:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-31 23:05:32 +0000
commitb54953d5eb9dc09fe5a4212d92b3f47b2d370926 (patch)
tree6f2d1bd2d1ab9474a2c5997e4daf3d2445efb6dc /distrib
parent96f491ddbf9ed281369c3b3a2a4cb752f9e41158 (diff)
Only one kernel from now.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/i386/floppies/kc-common/Makefile60
-rw-r--r--distrib/i386/floppies/kc-common/copy_kernel.sh113
-rw-r--r--distrib/i386/floppies/kc-common/dot.profile13
-rw-r--r--distrib/i386/floppies/kc-common/kcbin.conf15
-rw-r--r--distrib/i386/floppies/kc-common/list34
-rw-r--r--distrib/i386/floppies/kc-common/mtree.conf36
6 files changed, 0 insertions, 271 deletions
diff --git a/distrib/i386/floppies/kc-common/Makefile b/distrib/i386/floppies/kc-common/Makefile
deleted file mode 100644
index 867d29736d7..00000000000
--- a/distrib/i386/floppies/kc-common/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-# $Id: Makefile,v 1.1 1996/05/31 22:52:33 mickey Exp $
-
-TOP= ${.CURDIR}/..
-
-.include "${TOP}/Makefile.inc"
-IMAGE= kc${REV}.fs
-CBIN= kcbin
-MOUNT_POINT?= /mnt
-VND?= vnd0
-VND_DEV= /dev/${VND}a
-VND_RDEV= /dev/r${VND}a
-IMAGE?= xxx-${REV}.fs
-MDEC= ${DESTDIR}/usr/mdec
-
-LIST= ${.CURDIR}/list
-CRUNCHCONF= ${.CURDIR}/${CBIN}.conf
-MTREE= ${.CURDIR}/mtree.conf
-
-all: ${CBIN}
-.ifndef FLOPPY3
-.else
-.endif
-.ifndef FLOPPY3
- dd if=/dev/zero of=${IMAGE} bs=10k count=120
- vnconfig -v -c ${VND_DEV} ${IMAGE}
- disklabel -w -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd ${VND} floppy5
- newfs -O -m 0 -o space -i 8192 -c 80 ${VND_RDEV} floppy5
-.else
- dd if=/dev/zero of=${IMAGE} bs=10k count=144
- vnconfig -v -c ${VND_DEV} ${IMAGE}
- disklabel -w -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd ${VND} floppy3
- newfs -O -m 0 -o space -i 8192 -c 80 ${VND_RDEV} floppy3
-.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 ${LIST}
- @echo ""
- @df -i ${MOUNT_POINT}
- @echo ""
- umount ${MOUNT_POINT}
- vnconfig -u ${VND_DEV}
- cat /*bin/* > /dev/null
-
-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 core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c
-
-.include <bsd.obj.mk>
-.include <bsd.subdir.mk>
diff --git a/distrib/i386/floppies/kc-common/copy_kernel.sh b/distrib/i386/floppies/kc-common/copy_kernel.sh
deleted file mode 100644
index 502109def23..00000000000
--- a/distrib/i386/floppies/kc-common/copy_kernel.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-# $OpenBSD: copy_kernel.sh,v 1.3 1996/04/25 21:28:16 niklas Exp $
-#
-# Kernel copy script
-
-DEFAULT_PARTITON=sd0a
-MOUNT_POINT=/mnt
-KERNEL_NAME=/bsd
-#TEST=testfn
-
-testfn() {
- echo $*
- sleep 5
-}
-
-cancel() {
- echo ""
- echo "Copy cancelled."
- exit 1
-}
-
-umountfs() {
- echo "Unmounting filesystem; please wait."
- trap 2 3
- ${TEST} umount ${MOUNT_POINT}
- case $? in
- 0)
- ;;
- *)
- echo "Warning: Unmount of ${MOUNT_POINT} failed."
- ;;
- esac
-}
-
-warning() {
- echo ""
- echo "Copy failed or was interrupted."
- echo "Warning: Copied kernel my be corrupted!"
-}
-
-trap "cancel;" 2 3
-echo "OpenBSD kernel copy program"
-echo ""
-echo "Default answers are displayed in brackets. You may hit Control-C"
-echo "at any time to cancel this operation (though if you hit Control-C at"
-echo "a prompt, you need to hit return for it to be noticed)."
-
-echo ""
-echo "What disk partition should the kernel be installed on?"
-echo "(For example, \"sd0a\", \"wd0a\", etc.)"
-echo ""
-echo -n "Partition? [${DEFAULT_PARTITON}] "
-read diskpart
-if [ "X${diskpart}" = "X" ]; then
- diskpart=${DEFAULT_PARTITON}
-fi
-rawdiskpart="r${diskpart}"
-
-echo ""
-echo -n "Are you sure you want to copy a new kernel to ${diskpart}? [n] "
-read reply
-case ${reply} in
-y*|Y*)
- ;;
-*)
- cancel
- ;;
-esac
-
-echo ""
-echo "Checking ${diskpart} partition; please wait."
-${TEST} fsck -p "/dev/${rawdiskpart}"
-case $? in
-0)
- ;;
-*)
- echo "File system check failed or aborted!"
- cancel
- ;;
-esac
-
-echo "Mounting /dev/${diskpart} on ${MOUNT_POINT}."
-trap "echo ''; umountfs; cancel;" 2 3
-${TEST} mount "/dev/${diskpart}" ${MOUNT_POINT}
-case $? in
-0)
- ;;
-*)
- echo "Mount failed!"
- cancel
- ;;
-esac
-
-echo "Copying kernel to ${MOUNT_POINT}."
-trap "warning; umountfs; cancel;" 2 3
-${TEST} cp ${KERNEL_NAME} ${MOUNT_POINT}
-case $? in
-0)
- ;;
-*)
- warning
- umountfs
- cancel
- ;;
-esac
-
-umountfs
-
-echo ""
-echo "Copy completed."
-echo ""
-echo "Use \"halt\" to halt the system, then (when the system is halted)"
-echo "eject the floppy disk and hit any key to reboot from the hard disk."
-exit 0
diff --git a/distrib/i386/floppies/kc-common/dot.profile b/distrib/i386/floppies/kc-common/dot.profile
deleted file mode 100644
index 79c9fff8c8b..00000000000
--- a/distrib/i386/floppies/kc-common/dot.profile
+++ /dev/null
@@ -1,13 +0,0 @@
-# $OpenBSD: dot.profile,v 1.2 1996/04/25 21:28:17 niklas Exp $
-
-PATH=/sbin:/bin:/
-export PATH
-
-if [ "X${DONEPROFILE}" = "X" ]; then
- DONEPROFILE=YES
-
- echo -n "Enter 'copy_kernel' at the prompt to copy a kernel to your "
- echo "hard disk,"
- echo "'reboot' to reboot the system, or 'halt' to halt the system."
- echo ""
-fi
diff --git a/distrib/i386/floppies/kc-common/kcbin.conf b/distrib/i386/floppies/kc-common/kcbin.conf
deleted file mode 100644
index ab73338628e..00000000000
--- a/distrib/i386/floppies/kc-common/kcbin.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# $OpenBSD: kcbin.conf,v 1.3 1996/05/31 22:52:36 mickey Exp $
-#
-# kcbin.conf - unified binary for the kc floppy
-#
-
-srcdirs bin sbin
-
-progs cp dd disklabel fsck_ffs init mount mount_ffs reboot sh test umount
-
-ln test [
-ln mount_ffs ffs
-ln reboot halt
-ln sh -sh # init invokes the shell this way
-
-libs -ledit -lutil -ltermcap -lcrypt -ll
diff --git a/distrib/i386/floppies/kc-common/list b/distrib/i386/floppies/kc-common/list
deleted file mode 100644
index ac90e678040..00000000000
--- a/distrib/i386/floppies/kc-common/list
+++ /dev/null
@@ -1,34 +0,0 @@
-# $OpenBSD: list,v 1.3 1996/05/31 22:52:37 mickey Exp $
-
-# copy the kernel
-COPY ${CURDIR}/../../../../sys/arch/i386/compile/INST/bsd bsd
-
-# copy the crunched binary, link to it, and kill it
-COPY ${OBJDIR}/kcbin kcbin
-LINK kcbin bin/cp
-LINK kcbin bin/dd
-LINK kcbin bin/sh
-LINK kcbin bin/test
-LINK kcbin bin/[
-LINK kcbin sbin/disklabel
-LINK kcbin sbin/fsck_ffs
-LINK kcbin sbin/halt
-LINK kcbin sbin/init
-LINK kcbin sbin/mount
-LINK kcbin sbin/mount_ffs
-LINK kcbin sbin/reboot
-LINK kcbin sbin/umount
-SPECIAL /bin/rm kcbin
-
-# copy the MAKEDEV script and make some devices
-COPY ${CURDIR}/../../../../etc/etc.i386/MAKEDEV dev/MAKEDEV
-SPECIAL cd dev; sh MAKEDEV floppy
-SPECIAL /bin/rm dev/MAKEDEV
-
-# we need the contents of /usr/mdec
-COPYDIR ${DESTDIR}/usr/mdec usr/mdec
-
-# copy the common kc-floppy tools
-COPY ${CURDIR}/dot.profile .profile
-COPY ${CURDIR}/copy_kernel.sh copy_kernel
-SPECIAL chmod 755 copy_kernel
diff --git a/distrib/i386/floppies/kc-common/mtree.conf b/distrib/i386/floppies/kc-common/mtree.conf
deleted file mode 100644
index c207857bb2d..00000000000
--- a/distrib/i386/floppies/kc-common/mtree.conf
+++ /dev/null
@@ -1,36 +0,0 @@
-# $OpenBSD: mtree.conf,v 1.2 1996/04/25 21:28:21 niklas Exp $
-
-/set type=dir uname=root gname=wheel mode=0755
-# .
-.
-
-# ./bin
-bin
-# ./bin
-..
-
-# ./dev
-dev
-# ./dev
-..
-
-#./mnt
-mnt
-# ./mnt
-..
-
-# ./sbin
-sbin
-# ./sbin
-..
-
-# ./usr
-usr
-
-# ./usr/mdec
-mdec
-# ./usr/mdec
-..
-
-# ./usr
-..