Skip to content

Commit

Permalink
Initial import of 386BSD 0.1 othersrc/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgbsd committed Jun 20, 1993
1 parent 1df15d2 commit 1bf9d5d
Show file tree
Hide file tree
Showing 50 changed files with 2,519 additions and 0 deletions.
160 changes: 160 additions & 0 deletions etc/MAKEDEV
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
#!/bin/sh -
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
#
# Written and contributed by W. Jolitz 12/90
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement: ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90
#
# Device "make" file. Valid arguments:
# std standard devices
# local configuration specific devices
#
# Tapes:
# wt* QIC-interfaced (e.g. not SCSI) 3M cartridge tape
#
# Disks:
# wd* "winchester" disk drives (ST506,IDE,ESDI,RLL,...)
# fd* "floppy" disk drives (3 1/2", 5 1/4")
# as* "SCSI" disk/tape/CDROM drives
#
# Terminal ports:
# com* standard PC COM ports
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
#
# Printers:
#
# Call units:
#
# Special purpose devices:
# flog* kernel logging device
#

PATH=/sbin:/bin/:/usr/bin
umask 77
for i
do
case $i in

std)
rm -f console drum mem kmdem null tty klog stdin stdout stderr
mknod console c 0 0
mknod drum c 4 0 ; chmod 640 drum ; chgrp kmem drum
mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem
mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem
mknod null c 2 2 ; chmod 666 null
mknod tty c 1 0 ; chmod 666 tty
mknod klog c 7 0 ; chmod 600 klog
mknod stdin c 53 0 ; chmod 666 stdin
mknod stdout c 53 1 ; chmod 666 stdout
mknod stderr c 53 2 ; chmod 666 stderr
rm -f fd/*
mkdir fd > /dev/null 2>&1
(cd fd && eval `echo "" | awk ' BEGIN { \
for (i = 0; i < 64; i++) \
printf("mknod %d c 53 %d;", i, i)}'`)
chown -R bin.bin fd
chmod 555 fd
chmod 666 fd/*
;;

wt*)
umask 2
mknod wt0 b 3 0
mknod rwt0 c 10 0
umask 77
;;

fd*|wd*|as*)
umask 2 ; unit=`expr $i : '..\(.*\)'`
case $i in
fd*) name=fd; blk=2; chr=9;;
wd*) name=wd; blk=0; chr=3;;
as*) name=as; blk=4; chr=13;;
esac
rm -f $name$unit? r$name$unit?
case $unit in
0|1)
mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0`
mknod ${name}${unit}b b $blk `expr $unit '*' 8 + 1`
mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2`
mknod ${name}${unit}d b $blk `expr $unit '*' 8 + 3`
mknod ${name}${unit}e b $blk `expr $unit '*' 8 + 4`
mknod ${name}${unit}f b $blk `expr $unit '*' 8 + 5`
mknod ${name}${unit}g b $blk `expr $unit '*' 8 + 6`
mknod ${name}${unit}h b $blk `expr $unit '*' 8 + 7`
mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0`
mknod r${name}${unit}b c $chr `expr $unit '*' 8 + 1`
mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2`
mknod r${name}${unit}d c $chr `expr $unit '*' 8 + 3`
mknod r${name}${unit}e c $chr `expr $unit '*' 8 + 4`
mknod r${name}${unit}f c $chr `expr $unit '*' 8 + 5`
mknod r${name}${unit}g c $chr `expr $unit '*' 8 + 6`
mknod r${name}${unit}h c $chr `expr $unit '*' 8 + 7`
chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
;;
*)
echo bad unit for disk in: $i
;;
esac
umask 77
;;

com*)
unit=`expr $i : 'com\(.*\)'`
rm -f com$unit
mknod com$unit c 8 $unit
;;

pty*)
class=`expr $i : 'pty\(.*\)'`
case $class in
0) offset=0 name=p;;
1) offset=16 name=q;;
2) offset=32 name=r;;
3) offset=48 name=s;;
# Note that telnetd, rlogind, and xterm (at least) only look at p-s.
4) offset=64 name=t;;
*) echo bad unit for pty in: $i;;
esac
case $class in
0|1|2|3|4)
umask 0
eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
for (i = 0; i < 16; i++)
printf("mknod tty%s%x c 5 %d; \
mknod pty%s%x c 6 %d; ", \
n, i, b+i, n, i, b+i); }'`
umask 77
if [ $class = 1 ]; then
mv ttyqf ttyv0; mv ptyqf ptyv0
fi
;;
esac
;;

local)
umask 0
sh MAKEDEV.local
;;

esac
done
49 changes: 49 additions & 0 deletions etc/MAKEDEV.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/sh -
#
# Copyright (c) 1991 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.
#
# @(#)MAKEDEV.local 5.1 (Berkeley) 3/22/91
#

# Local device MAKEDEV script.

PATH=/sbin:/bin:/usr/bin
umask 77
for i
do
case $i in

*)
echo 'MAKEDEV.local: no such device.'
;;
esac
done
76 changes: 76 additions & 0 deletions etc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# @(#)Makefile 5.11 (Berkeley) 5/21/91

NOOBJ= oobj

# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
# -rw-r--r--
BIN1= aliases csh.cshrc csh.login csh.logout crontab daily dm.conf \
ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \
man.conf monthly motd netstart phones printcap protocols rc \
rc.local remote security services shells syslog.conf ttys weekly \
etc.${MACHINE}/disktab

# -rw-rw-rw-
BIN2= motd

MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist
NAMEDB= localhost.rev named.boot root.cache
PCS= pcs750.bin
WCS1= wcs fppwcs poc poc1 poc2 fppoc
WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual

all clean cleandir depend etc install lint:

distribution:
install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
(cd ${DESTDIR}/etc; \
pwd_mkdb -p master.passwd; \
mv master.passwd.pag passwd.pag; \
mv master.passwd.dir passwd.dir; \
mv master.passwd.orig passwd)
install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
(cd root; \
install -c -o root -g wheel -m 644 dot.cshrc \
${DESTDIR}/root/.cshrc; \
install -c -o root -g wheel -m 644 dot.klogin \
${DESTDIR}/root/.klogin; \
install -c -o root -g wheel -m 644 dot.login \
${DESTDIR}/root/.login; \
install -c -o root -g wheel -m 644 dot.profile \
${DESTDIR}/root/.profile; \
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
${DESTDIR}/etc/mtree
cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
${DESTDIR}/etc/namedb
install -c -o ${BINOWN} -g operator -m 664 /dev/null \
${DESTDIR}/etc/dumpdates
install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
${DESTDIR}/var/log/messages
install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
${DESTDIR}/var/log/maillog
install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
${DESTDIR}/var/log/lpd-errs
install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
${DESTDIR}/var/run/utmp
(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
fstab.* ${DESTDIR}/)
.if ${MACHINE} == "tahoe"
(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
${DESTDIR}/)
.endif
.if ${MACHINE} == "vax"
(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
${DESTDIR}/)
.endif

hcx9-distribution:
(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
${DESTDIR}/)

.include <bsd.prog.mk>
50 changes: 50 additions & 0 deletions etc/aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# @(#)aliases 5.3 (Berkeley) 5/24/90
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
bin: root
daemon: root
games: root
ingres: root
nobody: root
system: root
toor: root
uucp: root

# Well-known aliases
root:
manager:
dumper:
operator:

# OFFICIAL CSRG/BUG ADDRESSES

# FTP BUG ADDRESS
ftp-bugs: [email protected]

# DISTRIBUTION PERSON
bsd-dist: [email protected]

# FORTUNE
fortune: [email protected]

# TERMCAP
termcap: [email protected]

# BUG PERSON
ucb-fixes: [email protected]
ucb-fixes-request: [email protected]
bugs: [email protected]
# END OFFICIAL BUG ADDRESSES
7 changes: 7 additions & 0 deletions etc/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
0,15,30,45 * * * * root /usr/libexec/atrun
#0 1 * * * daemon /usr/contrib/news/daily
#0 0 * * * uucp /etc/uucp.daily
#7 5,12,18 * * * uucp /etc/uucp.6hours
0 2 * * * root /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "daily output" root
30 3 * * 6 root /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | mail -s "weekly output" root
30 5 1 * * root /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | mail -s "monthlyoutput" root
1 change: 1 addition & 0 deletions etc/csh.cshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# System-wide .cshrc file for csh(1).
1 change: 1 addition & 0 deletions etc/csh.login
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# System-wide .login file for csh(1).
1 change: 1 addition & 0 deletions etc/csh.logout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# System-wide .logout file for csh(1).
Loading

0 comments on commit 1bf9d5d

Please sign in to comment.