Initial revision

This commit is contained in:
Ben Gras
2005-04-21 14:53:53 +00:00
commit 9865aeaa79
2264 changed files with 411685 additions and 0 deletions

18
etc/Makefile Normal file
View File

@@ -0,0 +1,18 @@
ETC=/etc
FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp
FILES2=shadow
all::
clean::
install::
@echo "Installing /etc.."
mkdir -p $(ETC)
for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then echo $$f exists; else cp $$f $(ETC); fi; done
for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then echo $$f exists; else cp $$f $(ETC); chmod 600 $$f; fi; done
@echo "Making hierarchy.."
./mtree.sh mtree/minix.tree
cd /dev && /usr/src/commands/scripts/MAKEDEV.sh std
(cd ast && tar cf - . ) | (cd /usr/ast && tar xf - )

4
etc/fstab Executable file
View File

@@ -0,0 +1,4 @@
# Poor man's File System Table.
root=/dev/ROOT
usr=/dev/USR

11
etc/group Executable file
View File

@@ -0,0 +1,11 @@
operator:*:0:
daemon:*:1:
bin:*:2:
other:*:3:
tty:*:4:
uucp:*:5:
news:*:6:
ftp:*:7:
kmem:*:8:
www:*:9:
nogroup:*:99:

1
etc/hostname.file Executable file
View File

@@ -0,0 +1 @@
noname

1
etc/inet.conf Executable file
View File

@@ -0,0 +1 @@
psip0 { default; };

0
etc/motd Executable file
View File

0
etc/mtab Executable file
View File

4
etc/mtree.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
cat $1 | while read line
do awk '{ print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" }' | sh || exit 1
done

62
etc/mtree/minix.tree Normal file
View File

@@ -0,0 +1,62 @@
755 root operator /
755 bin operator /bin
755 root operator /dev
755 root operator /etc
555 root operator /fd0
755 root operator /lib
755 root operator /lib/i386
755 bin operator /boot
555 root operator /mnt
555 root operator /root
1777 root operator /tmp
755 root operator /usr
755 root operator /usr/adm
755 root operator /usr/adm/old
755 ast other /usr/ast
755 bin operator /usr/bin
755 root operator /usr/etc
755 root operator /usr/include
755 root operator /usr/lib
755 root operator /usr/lib/advent
755 root operator /usr/lib/cawf
755 root operator /usr/lib/dict
755 root operator /usr/lib/ego
755 root operator /usr/lib/flex
755 root operator /usr/lib/fonts
755 root operator /usr/lib/i86
755 root operator /usr/lib/keymaps
755 root operator /usr/lib/m2
755 root operator /usr/sbin
755 root operator /usr/sbin/drivers
755 root operator /usr/sbin/servers
775 bin operator /usr/local
775 bin operator /usr/local/bin
775 bin operator /usr/local/include
755 root operator /usr/local/info
775 bin operator /usr/local/lib
775 bin operator /usr/local/man
755 root operator /usr/local/man/man1
755 root operator /usr/local/man/man5
755 root operator /usr/local/man/man8
775 bin operator /usr/local/src
755 bin operator /usr/man
755 bin operator /usr/man/man1
755 bin operator /usr/man/man2
755 bin operator /usr/man/man3
755 bin operator /usr/man/man4
755 bin operator /usr/man/man5
755 bin operator /usr/man/man6
755 bin operator /usr/man/man7
755 bin operator /usr/man/man8
755 bin operator /usr/man/man9
755 bin operator /usr/mdec
700 root operator /usr/preserve
755 root operator /usr/run
755 root operator /usr/spool
711 root operator /usr/spool/at
711 root operator /usr/spool/at/past
700 root operator /usr/spool/crontabs
775 root uucp /usr/spool/locks
700 daemon daemon /usr/spool/lpd
755 bin operator /usr/src
1777 root operator /usr/tmp

9
etc/passwd Executable file
View File

@@ -0,0 +1,9 @@
root:##root:0:0:Big Brother:/:
daemon:*:1:1:The Deuce:/etc:
bin:##root:2:0:Binaries:/usr/src:
uucp:*:5:5:UNIX to UNIX copy:/usr/spool/uucp:/usr/bin/uucico
news:*:6:6:Usenet news:/usr/spool/news:
ftp:*:7:7:Anonymous FTP:/usr/ftp:
ast:*:8:3:Andrew S. Tanenbaum:/usr/ast:
www:*:9:9:World Wide Web:/usr/www:
nobody:*:9999:99::/tmp:

3
etc/profile Executable file
View File

@@ -0,0 +1,3 @@
# Set timezone.
TZ='GMT0' export TZ

19
etc/protocols Executable file
View File

@@ -0,0 +1,19 @@
#
# Internet (IP) protocols
#
# @(#)protocols 8.1 (Berkeley) 6/9/93
#
ip 0 IP # internet protocol, pseudo protocol number
icmp 1 ICMP # internet control message protocol
igmp 2 IGMP # internet group management protocol
ggp 3 GGP # gateway-gateway protocol
tcp 6 TCP # transmission control protocol
egp 8 EGP # exterior gateway protocol
pup 12 PUP # PARC universal packet protocol
udp 17 UDP # user datagram protocol
hmp 20 HMP # host monitoring protocol
xns-idp 22 XNS-IDP # Xerox NS IDP
rdp 27 RDP # reliable data protocol
iso-tp4 29 ISO-TP4 # ISO Transport Protocol Class 4
iso-ip 80 ISO-IP # ISO Internet Protocol
encap 98 ENCAP # RFC1241 encapsulation

115
etc/rc Executable file
View File

@@ -0,0 +1,115 @@
# /etc/rc - System startup script run by init before going multiuser.
umask 022
TERM="${TERM-minix}"
PATH=/usr/local/bin:/bin:/usr/bin
export TERM PATH
usage()
{
echo >&2 "Usage: $0 [-saf] start|stop|down"
exec intr sh
}
while getopts 'saf' opt
do
case $opt in
s) sflag=t ;; # Single user
a) aflag=t ;; # Ask for /usr
f) fflag=t ;; # Force a full file system check
*) usage
esac
done
shift `expr $OPTIND - 1`
case "$#:$1" in
1:start|1:stop|1:down)
action=$1
;;
*) usage
esac
case $action in
start)
# National keyboard?
test -f /etc/keymap && loadkeys /etc/keymap
# Set timezone.
. /etc/profile
# Try to read the hardware real-time clock, otherwise do it manually.
readclock || intr date -q
# Initialize files.
printroot >/etc/mtab # /etc/mtab keeps track of mounts
>/etc/utmp # /etc/utmp keeps track of logins
# /etc/fstab lists the root, tmp and usr devices.
. /etc/fstab
# Any swapspace on a device?
test "$swap" : '/dev/' && mount -s $swap
# Mount the /usr partition unless this is a single floppy Minix.
if [ ! -d /usr/bin ]
then
if [ "$aflag" -o "$usr" = unknown ]
then
# We need to ask what the /usr du jour is.
intr sh -c '
echo -n "Finish the name of device to mount as /usr: /dev/"
read usr
echo "usr=/dev/$usr" >/tmp/usr'
. /tmp/usr
fi
mount $usr /usr || {
echo "\
Please try to mount something else as /usr, then hit CTRL-D to continue startup.
Mount $usr /usr failed -- Single user."
intr sh
}
rm -f /tmp/usr
fi
# Check if the system crashed.
if shutdown -C
then
echo
echo "The system was not properly shut down. Checking file systems."
fflag=t
fi
if [ "$fflag" ]
then
umount $usr
intr fsck -r $root
intr fsck -r $usr
mount $usr /usr
fi
if [ "$sflag" ]
then
echo "Single user."
intr sh
fi
# Any swapspace on a file?
test -n "$swap" -a ! "$swap" : '/dev/' && mount -s $swap
case "`printroot -r`" in
/dev/ram)
# Remove boot-only things to make space.
rm -rf /boot /minix
esac
# Things should be alright now.
echo;echo "Multiuser startup in progress."
esac
# Further initialization.
test -f /usr/etc/rc && sh /usr/etc/rc $action
test -f /usr/local/etc/rc && sh /usr/local/etc/rc $action
# Any messages?
test "$action" = start -a -f /etc/issue && cat /etc/issue
exit 0

88
etc/services Executable file
View File

@@ -0,0 +1,88 @@
#
# Network services, Internet style
#
# @(#)services 8.1 (Berkeley) 6/9/93
#
tcpmux 1/tcp # TCP port multiplexer (RFC1078)
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
qotd 17/tcp quote
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp 21/tcp
telnet 23/tcp
smtp 25/tcp mail
time 37/tcp timserver
time 37/udp timserver
rlp 39/udp resource # resource location
nameserver 42/tcp name # IEN 116
whois 43/tcp nicname
domain 53/tcp nameserver # name-domain server
domain 53/udp nameserver
mtp 57/tcp # deprecated
bootps 67/udp # Bootstrap Protocol Server
bootpc 68/udp # Bootstrap Protocol Client
tftp 69/udp
rje 77/tcp netrjs
finger 79/tcp
http 80/tcp # World Wide Web
link 87/tcp ttylink
supdup 95/tcp
hostnames 101/tcp hostname # usually from sri-nic
tsap 102/tcp # part of ISODE.
pop 110/tcp postoffice
sunrpc 111/tcp
sunrpc 111/udp
auth 113/tcp authentication
sftp 115/tcp
uucp-path 117/tcp
nntp 119/tcp readnews untp # USENET News Transfer Protocol
ntp 123/udp
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service
imap 143/tcp
snmp 161/udp
snmp-trap 162/udp
#
# UNIX specific services
#
exec 512/tcp
biff 512/udp comsat
login 513/tcp
who 513/udp whod
shell 514/tcp cmd # no passwords used
syslog 514/udp
printer 515/tcp spooler # line printer spooler
talk 517/udp
ntalk 518/udp
route 520/udp router routed
timed 525/udp timeserver
tempo 526/tcp newdate
courier 530/tcp rpc
conference 531/tcp chat
netnews 532/tcp readnews
netwall 533/udp # -for emergency broadcasts
uucp 540/tcp uucpd # uucp daemon
rdist 541/tcp rdistd # rdist daemon
remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem
ingreslock 1524/tcp
#
# Kerberos (Project Athena/MIT) services
#
kerberos 750/udp kdc # Kerberos (server) udp
kerberos 750/tcp kdc # Kerberos (server) tcp
krbupdate 760/tcp kreg # Kerberos registration
kpasswd 761/tcp kpwd # Kerberos "passwd"
klogin 543/tcp # Kerberos rlogin
eklogin 2105/tcp # Kerberos encrypted rlogin
kshell 544/tcp krcmd # Kerberos remote shell

1
etc/shadow Executable file
View File

@@ -0,0 +1 @@
root::0:0:::

60
etc/termcap Executable file
View File

@@ -0,0 +1,60 @@
mx|minix|minix console:\
:am:xn:bs:\
:co#80:li#25:\
:is=\E[0m:\
:cd=\E[0J:cl=\E[H\E[0J:\
:so=\E[7m:se=\E[0m:\
:us=\E[4m:ue=\E[0m:\
:mb=\E[5m:md=\E[1m:\
:mr=\E[7m:me=\E[0m:\
:sr=\EM:\
:cm=\E[%i%d;%dH:\
:ho=\E[H:\
:al=\E[L:AL=\E[%dL:\
:ce=\E[K:\
:DC=\E[%dP:dc=\E[P:\
:DL=\E[%dM:dl=\E[M:\
:DO=\E[%dB:do=\E[B:\
:IC=\E[%d@:ic=\E[@:\
:it#8:\
:le=^H:LE=\E[%dD:\
:nd=\E[C:RI=\E[%dC:\
:up=\E[A:UP=\E[%dA:\
:ku=\E[A:kd=\E[B:\
:kl=\E[D:kr=\E[C:\
:kh=\E[H:kb=^H:\
:kD=\177:kI=\E[@:\
:kN=\E[U:kP=\E[V:
du|dialup|Dialup line:\
:bs:co#80:li#24:
db|dumb|Really dumb terminal:\
:bs:co#80:li#24:
lp|lp|Line Printer:\
:co#80:li#66:
li|ansi|Ansi standard crt:\
:am:bs:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
:dn=\E[B:me=\E[0m:mb=\E[5m:mr=\E[7m:md=\E[1m:ho=\E[H:li#24:\
:nd=\E[C:ms:pt:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:up=\E[A:\
:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:
vs|xterm|xterms|vs100|xterm terminal emulator (X window system):\
:am:cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:\
:co#80:li#24:cl=\E[H\E[2J:bs:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:md=\E[1m:mr=\E[7m:me=\E[m:\
:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:kD=\177:\
:kI=\E[@:kN=\E[U:kP=\E[V:ta=^I:pt:sf=\n:sr=\EM:\
:al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\
:MT:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:\
:rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:xn:\
:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
:hs:ts=\E]2;:fs=^G:ds=\E]2;^G:
d0|vt100|vt100-am|vt100am|dec-vt100|dec vt100:\
:do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=\ED:\
:le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;24r\E[24;1H:\
:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=\EM:vt#3:xn:\
:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:

19
etc/ttytab Executable file
View File

@@ -0,0 +1,19 @@
# ttytab - terminals
#
# Device Type Program Init
console minix getty
ttyc1 minix getty
ttyc2 minix getty
ttyc3 minix getty
tty00 unknown
tty01 unknown
ttyp0 network
ttyp1 network
ttyp2 network
ttyp3 network
ttyp4 network
ttyp5 network
ttyp6 network
ttyp7 network
ttyp8 network
ttyp9 network

0
etc/utmp Executable file
View File