summaryrefslogtreecommitdiff
path: root/example.files
diff options
context:
space:
mode:
Diffstat (limited to 'example.files')
-rw-r--r--example.files/fstab22
-rw-r--r--example.files/inittab10
-rw-r--r--example.files/issue3
-rw-r--r--example.files/motd10
-rw-r--r--example.files/rc79
-rw-r--r--example.files/rc.local87
-rw-r--r--example.files/rc.serial194
-rw-r--r--example.files/securetty5
-rw-r--r--example.files/shells4
-rw-r--r--example.files/syslog.conf12
-rw-r--r--example.files/syslog.conf.alt22
11 files changed, 448 insertions, 0 deletions
diff --git a/example.files/fstab b/example.files/fstab
new file mode 100644
index 00000000..9f169dcd
--- /dev/null
+++ b/example.files/fstab
@@ -0,0 +1,22 @@
+# /etc/fstab
+# static file system information
+#
+# This file is not used by the kernel, but rather by mount(8) and umount(8)
+# (and some day fsck(8)). Comment lines have "#" in the first column.
+# Entries that are to be ignored should have "none" in the directory field,
+# and have type "ignore" or options "xx". Frequency and pass are numeric
+# fields for dump(8) and fsck(8) that are not used yet in Linux. You can
+# leave them empty if want.
+
+# device directory type options freq pass
+/dev/sda2 / ext2 defaults 1 1
+none /proc proc defaults 0 0
+/dev/sdb1 none swap sw 0 0
+/dev/sdb2 /var ext2 defaults 1 1
+/dev/sdc1 /usr ext2 defaults 1 1
+/dev/sdc3 /usr/src ext2 defaults 1 1
+/dev/sdc2 /home ext2 defaults 1 1
+/dev/sdc4 /playpen ext2 defaults 1 1
+
+/dev/sda1 /dos msdos noexec,conv=binary,gid=20,umask=007 0 0
+/dev/sdb3 /dos/usr msdos noexec,conv=binary,gid=20,umask=007 0 0
diff --git a/example.files/inittab b/example.files/inittab
new file mode 100644
index 00000000..d4a2177d
--- /dev/null
+++ b/example.files/inittab
@@ -0,0 +1,10 @@
+# inittab
+# Format:
+# ttyline:termcap-entry:getty-command
+tty1:linux:/sbin/getty 9600 tty1
+tty2:console:/sbin/getty 9600 tty2
+tty3:console:/sbin/getty 9600 tty3
+tty4:console:/sbin/getty 9600 tty4
+tty5:console:/sbin/getty 9600 tty5
+tty6:console:/sbin/getty 9600 tty6
+ttyS1:vt100:/sbin/getty -Lh 19200 ttyS1
diff --git a/example.files/issue b/example.files/issue
new file mode 100644
index 00000000..4ad1ec5a
--- /dev/null
+++ b/example.files/issue
@@ -0,0 +1,3 @@
+
+Welcome to winter, an i486 running BOGUS Release 1.0.1 Linux 1.1.90
+
diff --git a/example.files/motd b/example.files/motd
new file mode 100644
index 00000000..842a6f3b
--- /dev/null
+++ b/example.files/motd
@@ -0,0 +1,10 @@
+
+ |^^^^^^|
+ | | _____________________
+ | | / \
+ | (o)(o) | |
+ @ _) | BOGUS man!! |
+ | ,___| ,,| |
+ | / ..'' | |
+ /____\ \_____________________/
+
diff --git a/example.files/rc b/example.files/rc
new file mode 100644
index 00000000..232afc35
--- /dev/null
+++ b/example.files/rc
@@ -0,0 +1,79 @@
+# rc file for The Linux BOGUS Release, version 1.0.1
+
+ echo "Running /etc/rc. . ."
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin; export PATH
+
+# Update (bdflush) performs flushes dirty buffers back to disk and
+# performs a sync every 30 seconds.
+ echo "Starting update"
+update &
+
+if [ -f /fastboot ]
+then
+ echo "Skipping file system check"
+else
+ echo "Performing file system check"
+ fsck -AV -a
+ # If there was a failure, drop into single-user mode.
+ # NOTE: This is not secure. If security is needed, make sure than
+ # /etc/securesingle exists and "reboot single". simipleinit
+ # will then prompt for root's password.
+ if [ $? -gt 1 ]
+ then
+ echo "Warning: fsck FAILED"
+ echo " Starting single user shell"
+ echo " Fix filesystem and REBOOT"
+ sh -si < /dev/console > /dev/console 2>&1
+ fi
+fi
+
+ echo "Mounting file systems"
+# Remount the root filesystem in read-write mode
+mount -n -o rw,remount /
+
+# Remove the fastboot check file
+rm -f /fastboot
+
+# Remove /etc/mtab* so mount creates the /etc/mtab file
+rm -f /etc/mtab*
+
+# Mount all partitions specified in /etc/fstab
+mount -avt nonfs,nomsdos,nohpfs
+
+# Mount swap partition specified in /etc/fstab
+swapon -a
+
+ echo -n "Initialization: "
+# Update ps database
+if [ -f /usr/sbin/psupdate -a -f /usr/src/linux/vmlinux ]; then
+ echo -n "psdatabase "
+ /usr/sbin/psupdate /usr/src/linux/vmlinux
+fi
+
+# tmp and usr may be mounted, so we do these rm's after mount
+ echo -n "locks "
+rm -f /var/lock/LCK*
+ echo -n "pids "
+rm -f /var/run/*
+ echo -n "/tmp "
+rm -rf /tmp; mkdir /tmp; chmod 1777 /tmp
+
+# Remove /var/adm/utmp and touch it
+ echo -n "utmp "
+if [ ! -e /var ]; then mkdir /var; chmod 755 /var; fi
+if [ ! -e /var/adm ]; then mkdir /var/adm; chmod 755 /var/adm; fi
+rm -f /var/adm/utmp
+touch /var/adm/utmp
+chmod 644 /var/adm/utmp
+
+ echo ""
+ echo "Running rc.local. . ."
+sh /etc/rc.local
+
+# Allow logins
+ echo "Allowing logins"
+rm -f /etc/nologin
+
+date
+exit 0
diff --git a/example.files/rc.local b/example.files/rc.local
new file mode 100644
index 00000000..190242d5
--- /dev/null
+++ b/example.files/rc.local
@@ -0,0 +1,87 @@
+# rc.local file for The Linux BOGUS Release, version 1.0.1
+
+ echo -n "Local initialization: "
+
+# Set the host name. You will probably want to change this.
+ echo -n "hostname "
+hostname winter
+
+# Update the system time from the CMOS clock.
+# This assume that the CMOS clock is in local time, and that you have the
+# correct links in /usr/src/zoneinfo (see zic(8) for details. (For example,
+# for the east coast of the US, do: zic -l US/Eastern -p America/NewYork)
+# Note: mount /usr BEFORE running rc.local!
+ echo -n "clock "
+clock -a
+
+# Set screen blanker to 5 minutes.
+ echo -n "screen-blanking "
+setterm -blank 5
+
+# Set modem for 57600 bps
+if [ -e /dev/modem ]
+then
+ echo -n "high-speed-modem "
+ setserial /dev/modem spd_hi
+fi
+
+# Make the keyboard repeat rate and delay reasonable.
+ echo -n "keyboard "
+kbdrate -r 24 -d 250 >& /dev/null
+
+# Make CTRL-ALT-DEL do a controlled reboot (i.e., call reboot(8))
+ echo -n "reboot "
+ctrlaltdel soft
+
+# Preserve elvis files in case of a crash
+ echo -n "vi-files "
+elvprsv "-the system went down" /tmp/elv_*.*
+
+ echo
+
+
+ echo -n "Starting daemons: "
+
+# Make sure log files exist
+if [ -d /var/adm ]; then
+ if [ ! -e /var/adm/kernlog ]; then touch /var/adm/kernlog; fi
+ if [ ! -e /var/adm/syslog ]; then touch /var/adm/syslog; fi
+ if [ ! -e /var/adm/maillog ]; then touch /var/adm/maillog; fi
+ if [ ! -e /var/adm/authlog ]; then touch /var/adm/authlog; fi
+ if [ ! -e /var/adm/news ]; then touch /var/adm/news; fi
+ if [ ! -e /var/adm/daemon ]; then touch /var/adm/daemon; fi
+ if [ ! -e /var/adm/lpd-errs ]; then touch /var/adm/lpd-errs; fi
+ if [ ! -e /var/adm/sysdebug ]; then touch /var/adm/sysdebug; fi
+
+ # start up syslogd if it exists, but wait until AFTER HOSTNAME SET
+ if [ -f /usr/sbin/syslogd ]; then
+ echo -n "syslogd "
+ /usr/sbin/syslogd
+ fi
+fi
+
+# Start up cron if it exists
+if [ -f /usr/sbin/cron ]
+then
+ echo -n "cron "
+ /usr/sbin/cron
+fi
+
+ echo
+
+# If you want networking turned on, then uncomment the following lines.
+if [ -f /etc/NETWORKING_IS_ON ]
+then
+ if [ -f /etc/rc.net ]
+ then
+ /bin/sh /etc/rc.net
+ fi
+fi
+
+ echo "Mounting foreign file systems"
+mount -avt nfs,msdos,hpfs
+
+# Create a new issue file
+echo > /etc/issue
+echo "Welcome to `hostname`, an `uname -m` running BOGUS Release 1.0.1 `uname` `uname -r`" >> /etc/issue
+echo >> /etc/issue
diff --git a/example.files/rc.serial b/example.files/rc.serial
new file mode 100644
index 00000000..1f3b07d0
--- /dev/null
+++ b/example.files/rc.serial
@@ -0,0 +1,194 @@
+#
+# /etc/rc.serial
+# Initializes the serial ports on your system
+#
+# Distributed with setserial version 2.10
+#
+
+# Standard flags you want your serial devices to have
+# Examples: SAK, pgrp_lockout, session_lockout
+#
+STD_FLAGS="session_lockout"
+
+SETSERIAL=/sbin/setserial
+
+echo -n "Configuring serial ports...."
+
+# Do wild interrupt detection
+#
+${SETSERIAL} -W /dev/cua0
+
+###############################################################
+#
+# AUTOMATIC CONFIGURATION
+#
+# Uncomment the appropriate lines below to enable auto-configuration
+# of a particular board. Or comment them out to disable them....
+#
+# NOTE! Although the automatic configuration is enabled by default,
+# I strongly suggest that you comment out this section and use the
+# manual configuration section instead. It's more work to set up, but
+# it's more reliable.
+#
+###############################################################
+
+# Do AUTOMATIC_IRQ probing
+#
+AUTO_IRQ=auto_irq
+
+# These are the standard COM1 through COM4 devices
+#
+# If you have an internal modeme with a Rockwell Chipset, add a "skip_test"
+# to the /dev/cua3 line below. (It's not added by default because it will
+# screw up people with 8514 displays).
+#
+${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# These are for the first AST Fourport board (base address 0x1A0)
+#
+${SETSERIAL} /dev/cua4 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua5 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua6 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua7 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# These are for the second AST Fourport board (base address 0x2A0)
+#
+${SETSERIAL} /dev/cua8 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua9 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua10 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua11 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# These are the 3rd and 4th ports on the Accent Async board.
+#
+#${SETSERIAL} /dev/cua12 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua13 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# Usenet Serial Board II (base address 0x100)
+#
+#${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+
+# BocaBoard 4 port (BB-1004) (base address 0x100)
+#
+#${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# BocaBoard 8 port (BB-1008) (base address 0x100),
+# or two BB-1004's (base addresses 0x100 and 0x120)
+#
+#${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua20 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua21 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua22 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+#${SETSERIAL} /dev/cua23 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+# BocaBoard 16 port (BB-1008), (base address 0x100),
+# or two BB-1008's (base addresses 0x100 and 0x140),
+# or four BB-1004's (base address 0x100, 0x120, 0x140, and 0x160)
+#
+# Warning --- some of these ports may conflict with the Future Domain
+# SCSI controller. If you want to run both the BocaBoards and the
+# Future Domain controller, you may need to change the port assignment
+# of the Bocaboards -- see below in the section on manual configuration.
+#
+${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua20 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua21 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua22 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua23 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua24 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua25 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua26 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua27 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua28 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua29 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua30 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+${SETSERIAL} /dev/cua31 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
+
+###############################################################
+#
+# MANUAL CONFIGURATION
+#
+# If you want to do manual configuration of one or more of your
+# serial ports, uncomment and modify the relevant lines.
+#
+###############################################################
+
+# These are the standard COM1 through COM4 devices
+#
+#${SETSERIAL} /dev/cua0 uart 16450 port 0x3F8 irq 4 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua1 uart 16450 port 0x2F8 irq 3 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua2 uart 16450 port 0x3E8 irq 4 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua3 uart 16450 port 0x2E8 irq 3 ${STD_FLAGS}
+
+# These are the first set of AST Fourport ports
+#
+#${SETSERIAL} /dev/cua4 uart 16450 port 0x1A0 irq 9 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua5 uart 16450 port 0x1A8 irq 9 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua6 uart 16450 port 0x1B0 irq 9 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua7 uart 16450 port 0x1B8 irq 9 fourport ${STD_FLAGS}
+
+# These are the second set of AST Fourport ports
+#
+#${SETSERIAL} /dev/cua8 uart 16450 port 0x2A0 irq 5 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua9 uart 16450 port 0x2A8 irq 5 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua10 uart 16450 port 0x2B0 irq 5 fourport ${STD_FLAGS}
+#${SETSERIAL} /dev/cua11 uart 16450 port 0x2B8 irq 5 fourport ${STD_FLAGS}
+
+# These are the 3rd and 4th ports on the Accent Async board.
+#
+#${SETSERIAL} /dev/cua12 uart 16450 port 0x330 irq 4 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua13 uart 16450 port 0x338 irq 4 ${STD_FLAGS}
+
+# These are two spare devices you can use to customize for
+# some board which is not supported above....
+#${SETSERIAL} /dev/cua14 uart XXXXX port XXXX irq X ${STD_FLAGS}
+#${SETSERIAL} /dev/cua15 uart XXXXX port XXXX irq X ${STD_FLAGS}
+
+# These are the ports used for either the Usenet Serial II
+# board, or the Boca Board 4, 8, or 16 port boards.
+#
+# Uncomment only the first 4 lines for the Usenet Serial II board,
+# and uncomment the first 4, 8, or all 16 lines for the
+# Boca Board BB-1004, BB-1008, and BB-2016 respectively.
+#
+#${SETSERIAL} /dev/cua16 uart 16550A port 0x100 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua17 uart 16550A port 0x108 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua18 uart 16550A port 0x110 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua19 uart 16550A port 0x118 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua20 uart 16550A port 0x120 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua21 uart 16550A port 0x128 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua22 uart 16550A port 0x130 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua23 uart 16550A port 0x138 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua24 uart 16550A port 0x140 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua25 uart 16550A port 0x148 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua26 uart 16550A port 0x150 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua27 uart 16550A port 0x158 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua28 uart 16550A port 0x160 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua29 uart 16550A port 0x168 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua30 uart 16550A port 0x170 irq 12 ${STD_FLAGS}
+#${SETSERIAL} /dev/cua31 uart 16550A port 0x178 irq 12 ${STD_FLAGS}
+
+###########################################################
+#
+# Print the results of the serial configuration process
+#
+###########################################################
+
+echo "done."
+
+${SETSERIAL} -bg /dev/cua? /dev/cua??
diff --git a/example.files/securetty b/example.files/securetty
new file mode 100644
index 00000000..d874765d
--- /dev/null
+++ b/example.files/securetty
@@ -0,0 +1,5 @@
+tty1
+tty2
+tty3
+tty4
+ttyS1
diff --git a/example.files/shells b/example.files/shells
new file mode 100644
index 00000000..14b99f1a
--- /dev/null
+++ b/example.files/shells
@@ -0,0 +1,4 @@
+/bin/sh
+/bin/bash
+/bin/csh
+/bin/tcsh
diff --git a/example.files/syslog.conf b/example.files/syslog.conf
new file mode 100644
index 00000000..66e436b4
--- /dev/null
+++ b/example.files/syslog.conf
@@ -0,0 +1,12 @@
+kern.* /var/adm/kernlog
+mark.info;daemon.notice;mail.crit /var/adm/syslog
+mail.info;mail.debug /var/adm/maillog
+daemon.info /var/adm/daemon
+lpr.info /var/adm/lpd-errs
+auth.notice /var/adm/authlog
+*.err /var/adm/syslog
+*.notice;auth.debug /var/adm/sysdebug
+*.alert /dev/console
+news.alert;news.crit;news.err /var/adm/news
+news.warning;news.notice /var/adm/news
+news.info;news.debug /var/adm/news
diff --git a/example.files/syslog.conf.alt b/example.files/syslog.conf.alt
new file mode 100644
index 00000000..c5923c4c
--- /dev/null
+++ b/example.files/syslog.conf.alt
@@ -0,0 +1,22 @@
+# Log all kernel messages to the console.
+# Logging much else clutters up the screen.
+kern.* /dev/console
+#kern.* /dev/cua1
+
+# Log anything (except mail) of level info or higher.
+# Don't log private authentication messages!
+*.info;mail.none;authpriv.none /var/adm/messages
+
+# The authpriv file has restricted access.
+authpriv.* /var/adm/secure
+
+# Log all the mail messages in one place.
+mail.* /var/adm/maillog
+
+# Everybody gets emergency messages, plus log them on another
+# machine.
+*.emerg *
+
+# Save mail and news errors of level err and higher in a
+# special file.
+uucp,news.crit /var/adm/spooler