summaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/doFS.sh69
-rwxr-xr-xrelease/scripts/dokern.sh49
-rw-r--r--release/scripts/info.sh8
-rwxr-xr-xrelease/scripts/src-install.sh6
-rw-r--r--release/scripts/tar.sh120
5 files changed, 3 insertions, 249 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
deleted file mode 100644
index 0a63deee3a94..000000000000
--- a/release/scripts/doFS.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-:
-#set -ex
-
-if [ "x$VNDEVICE" = "x" ] ; then
- VNDEVICE=vn0
-fi
-export BLOCKSIZE=512
-
-if [ "$1" = "-s" ]; then
- do_size="yes"; shift
-else
- do_size=""
-fi
-
-FSIMG=$1; shift
-RD=$1 ; shift
-MNT=$1 ; shift
-FSSIZE=$1 ; shift
-FSPROTO=$1 ; shift
-FSINODE=$1 ; shift
-FSLABEL=$1 ; shift
-
-deadlock=20
-
-while true
-do
- rm -f ${FSIMG}
-
- if [ ! -b /dev/${VNDEVICE} -o ! -c /dev/r${VNDEVICE} ] ; then
- ( cd /dev && sh MAKEDEV ${VNDEVICE} )
- fi
-
- umount /dev/${VNDEVICE} 2>/dev/null || true
-
- umount ${MNT} 2>/dev/null || true
-
- vnconfig -u /dev/r${VNDEVICE} 2>/dev/null || true
-
- dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null
- # this suppresses the `invalid primary partition table: no magic'
- awk 'BEGIN {printf "%c%c", 85, 170}' |\
- dd of=${FSIMG} obs=1 seek=510 conv=notrunc 2>/dev/null
-
- vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG}
- disklabel -Brw /dev/r${VNDEVICE} ${FSLABEL}
- newfs -u 0 -t 0 -i ${FSINODE} -m 0 -T ${FSLABEL} -o space /dev/r${VNDEVICE}c
-
- mount /dev/${VNDEVICE}c ${MNT}
-
- if [ -d ${FSPROTO} ]; then
- (set -e && cd ${FSPROTO} && find . -print | cpio -dump ${MNT})
- else
- cp -p ${FSPROTO} ${MNT}
- fi
-
- df -ki ${MNT}
-
- set `df -ki ${MNT} | tail -1`
-
- umount ${MNT}
- vnconfig -u /dev/r${VNDEVICE} 2>/dev/null || true
-
- echo ">>> Filesystem is ${FSSIZE} K, $4 left"
- echo ">>> ${FSINODE} bytes/inode, $7 left"
- if [ "${do_size}" ]; then
- echo ${FSSIZE} > ${FSIMG}.size
- fi
- break;
-done
diff --git a/release/scripts/dokern.sh b/release/scripts/dokern.sh
deleted file mode 100755
index ac20226d1249..000000000000
--- a/release/scripts/dokern.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-# From the kernel config file on stdin (usually GENERIC), pare out items as
-# determined by whether or not the kernel is being prepared to contain
-# an MFS ($1 = YES) or will have the floppy image all to itself ($1 = NO or
-# not specified).
-
-if [ $# -lt 1 ]; then
- MFS=NO
-else
- MFS=$1
-fi
-
-if [ "$MFS" = "YES" ]; then
- sed -e '/pty/d' \
- -e '/wfd0/d' \
- -e '/mcd0/d' \
- -e '/matcd0/d' \
- -e '/scd0/d' \
- -e '/wt0/d' \
- -e '/pass0/d' \
- -e '/apm0/d' \
- -e '/ft0/d' \
- -e '/ppp/d' \
- -e '/gzip/d' \
- -e '/isp0/d' \
- -e '/NFS/d' \
- -e '/PROCFS/d' \
- -e '/SYSVSHM/d' \
- -e '/KTRACE/d' \
- -e '/MATH_EMULATE/d' \
- -e 's/GENERIC/BOOTMFS/g' \
- -e '/maxusers/s/32/4/'
-else
- sed -e '/pty/d' \
- -e '/pass0/d' \
- -e '/apm0/d' \
- -e '/ppp/d' \
- -e '/gzip/d' \
- -e '/PROCFS/d' \
- -e '/KTRACE/d' \
- -e 's/GENERIC/BOOTMFS/g'
-fi
-echo "options NFS_NOSERVER"
-echo 'options "MAXCONS=4"'
-echo "options SCSI_NO_OP_STRINGS"
-echo "options SCSI_NO_SENSE_STRINGS"
-echo "options NO_LKM"
-echo "options NO_SWAPPING"
diff --git a/release/scripts/info.sh b/release/scripts/info.sh
deleted file mode 100644
index b1c8c5356ccf..000000000000
--- a/release/scripts/info.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-# $ANA: info.sh,v 1.3 1996/06/04 16:25:30 wollman Exp $
-ls $1.[a-z][a-z] | wc | awk '{ print "Pieces = ",$1 }'
-for FILE in $1.[a-z][a-z]; do
- PIECE=`echo $FILE | cut -d . -f 2`
- echo -n "cksum.$PIECE = "
- cksum $FILE | awk ' { print $1,$2 } '
-done
diff --git a/release/scripts/src-install.sh b/release/scripts/src-install.sh
index 2ed098fc52e0..f31b68cc1424 100755
--- a/release/scripts/src-install.sh
+++ b/release/scripts/src-install.sh
@@ -8,15 +8,15 @@ if [ $# -lt 1 ]; then
echo "You must specify which components of src to extract"
echo "possible subcomponents are:"
echo
- echo "base bin contrib etc games gnu include lib libexec"
- echo "release sbin share sys ubin usbin"
+ echo "base bin contrib etc games gnu include lib libexec lkm"
+ echo "release sbin share smailcf sys ubin usbin"
echo
echo "You may also specify all to extract all subcomponents."
exit 1
fi
if [ "$1" = "all" ]; then
- dists="base bin contrib etc games gnu include lib libexec release sbin share sys ubin usbin"
+ dists="base bin contrib etc games gnu include lib libexec lkm release sbin share smailcf sys ubin usbin"
else
dists="$*"
fi
diff --git a/release/scripts/tar.sh b/release/scripts/tar.sh
deleted file mode 100644
index 45b96e97bf57..000000000000
--- a/release/scripts/tar.sh
+++ /dev/null
@@ -1,120 +0,0 @@
-#!/bin/sh -p
-#
-# Simple replacement for tar(1), using cpio(1).
-#
-# Copyright (c) 1996 Joerg Wunsch
-# 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.
-#
-# THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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.
-#
-
-#
-# For use on the fixit floppy. External programs required:
-# cpio(1), find(1), test(1)
-#
-
-#
-# $Id: tar.sh,v 1.3 1997/02/22 14:10:30 peter Exp $
-#
-
-archive=${TAPE:-/dev/rst0}
-blocksize="20"
-device=""
-mode="none"
-verbose=""
-
-usage()
-{
- echo "usage: tar -{c|t|x} [-v] [-b blocksize] [-f archive] [files...]" 1>&2
- exit 64 # EX_USAGE
-}
-
-#
-# Prepend a hyphen to the first arg if necessary, so the traditional form
-# ``tar xvf /dev/foobar'' will work, too. More kludgy legacy forms are not
-# supported however.
-#
-
-if [ $# -lt 1 ] ; then
- usage
-fi
-
-case "$1" in
- -*) break
- ;;
- *) tmp="$1"
- shift
- set -- -$tmp "$@"
- ;;
-esac
-
-while getopts "ctxvb:f:" option
-do
- case $option in
- [ctx])
- if [ $mode = "none" ] ; then
- mode=$option
- else
- usage
- fi
- ;;
- v)
- verbose="-v"
- ;;
- b)
- blocksize="${OPTARG}"
- ;;
- f)
- archive="${OPTARG## }"
- ;;
- *)
- usage
- ;;
- esac
-done
-
-shift $(($OPTIND - 1))
-
-if [ "X${archive}" != "X-" ] ; then
- device="-F ${archive}"
-# else: use stdin or stdout, which is the default for cpio
-fi
-
-case $mode in
- none)
- usage
- ;;
- t)
- exec cpio -it $verbose $device --block-size="$blocksize" "$@"
- ;;
- x)
- exec cpio -idmu $verbose $device --block-size="$blocksize" "$@"
- ;;
- c)
- if [ $# -eq 0 ] ; then
- # use current dir -- slightly bogus
- set -- "."
- fi
- find "$@" -print |\
- cpio -o -H ustar $verbose $device --block-size="$blocksize"
- exit $?
- ;;
-esac