diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-26 22:01:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-26 22:01:43 +0000 |
commit | 8262508fc4456b5230216473ea14c897268ba791 (patch) | |
tree | d172eebb211e84b023fe70fc14f201745635a7f0 /sources/target_skeleton/etc | |
parent | 085ba9f45190345249c56562bbccf05bc63e1476 (diff) |
With this update, everything now works as expected.
-Erik
Diffstat (limited to 'sources/target_skeleton/etc')
-rw-r--r-- | sources/target_skeleton/etc/fstab | 4 | ||||
-rw-r--r-- | sources/target_skeleton/etc/hostname | 1 | ||||
-rw-r--r-- | sources/target_skeleton/etc/hosts | 1 | ||||
-rwxr-xr-x | sources/target_skeleton/etc/init.d/S01mount | 1 | ||||
-rwxr-xr-x | sources/target_skeleton/etc/init.d/S20syslogd | 6 | ||||
-rwxr-xr-x | sources/target_skeleton/etc/init.d/S20urandom | 44 | ||||
-rwxr-xr-x | sources/target_skeleton/etc/init.d/S50networking | 2 | ||||
-rw-r--r-- | sources/target_skeleton/etc/inittab | 5 | ||||
-rw-r--r-- | sources/target_skeleton/etc/protocols | 2 | ||||
-rw-r--r-- | sources/target_skeleton/etc/random-seed | bin | 0 -> 512 bytes | |||
-rw-r--r-- | sources/target_skeleton/etc/resolv.conf | 2 | ||||
-rw-r--r-- | sources/target_skeleton/etc/services | 2 |
12 files changed, 61 insertions, 9 deletions
diff --git a/sources/target_skeleton/etc/fstab b/sources/target_skeleton/etc/fstab index 2ca20a492..525a95b1e 100644 --- a/sources/target_skeleton/etc/fstab +++ b/sources/target_skeleton/etc/fstab @@ -1,6 +1,6 @@ # /etc/fstab: static file system information. # -# <file system> <mount pt> <type> <options> <dump> <pass> -/dev/root / ext2 rw 0 1 +# <file system> <mount pt> <type> <options> <dump> <pass> +/dev/ubda / ext2 defaults,rw 0 1 proc /proc proc defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 diff --git a/sources/target_skeleton/etc/hostname b/sources/target_skeleton/etc/hostname new file mode 100644 index 000000000..46f514d13 --- /dev/null +++ b/sources/target_skeleton/etc/hostname @@ -0,0 +1 @@ +dev.null diff --git a/sources/target_skeleton/etc/hosts b/sources/target_skeleton/etc/hosts new file mode 100644 index 000000000..ba712fe03 --- /dev/null +++ b/sources/target_skeleton/etc/hosts @@ -0,0 +1 @@ +127.0.0.1 localhost diff --git a/sources/target_skeleton/etc/init.d/S01mount b/sources/target_skeleton/etc/init.d/S01mount index 85d3ab5a6..45d0e7bca 100755 --- a/sources/target_skeleton/etc/init.d/S01mount +++ b/sources/target_skeleton/etc/init.d/S01mount @@ -4,6 +4,7 @@ # fsck, since we don't need it here... echo -n "Mounting local file systems: " +/bin/mount / -o remount,rw > /dev/null 2>&1 /bin/mount -a > /dev/null 2>&1 if [ $? = 0 ] ; then echo "ok" diff --git a/sources/target_skeleton/etc/init.d/S20syslogd b/sources/target_skeleton/etc/init.d/S20syslogd new file mode 100755 index 000000000..e3b0e7de4 --- /dev/null +++ b/sources/target_skeleton/etc/init.d/S20syslogd @@ -0,0 +1,6 @@ +#!/bin/sh + +echo -n "Starting system log daemon: " +# start syslogging +/sbin/syslogd -m 0 +echo "ok" diff --git a/sources/target_skeleton/etc/init.d/S20urandom b/sources/target_skeleton/etc/init.d/S20urandom new file mode 100755 index 000000000..433fafee4 --- /dev/null +++ b/sources/target_skeleton/etc/init.d/S20urandom @@ -0,0 +1,44 @@ +#! /bin/sh +# +# urandom This script saves the random seed between reboots. +# It is called from the boot, halt and reboot scripts. +# +# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl +# + +[ -c /dev/urandom ] || exit 0 +#. /etc/default/rcS + +case "$1" in + start|"") + if [ "$VERBOSE" != no ] + then + echo -n "Initializing random number generator... " + fi + # Load and then save 512 bytes, + # which is the size of the entropy pool + if [ -f /etc/random-seed ] + then + cat /etc/random-seed >/dev/urandom + fi + rm -f /etc/random-seed + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom start: failed." + umask 022 + [ "$VERBOSE" != no ] && echo "done." + ;; + stop) + # Carry a random seed from shut-down to start-up; + # see documentation in linux/drivers/char/random.c + [ "$VERBOSE" != no ] && echo -n "Saving random seed... " + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom stop: failed." + [ "$VERBOSE" != no ] && echo "done." + ;; + *) + echo "Usage: urandom {start|stop}" >&2 + exit 1 + ;; +esac diff --git a/sources/target_skeleton/etc/init.d/S50networking b/sources/target_skeleton/etc/init.d/S50networking index 7104f3321..db60359f9 100755 --- a/sources/target_skeleton/etc/init.d/S50networking +++ b/sources/target_skeleton/etc/init.d/S50networking @@ -4,4 +4,4 @@ ifconfig lo 127.0.0.1 up route add -net 127.0.0.0 netmask 255.0.0.0 lo -hostname dev.null +hostname -F /etc/hostname diff --git a/sources/target_skeleton/etc/inittab b/sources/target_skeleton/etc/inittab index 2e91bd1e6..8575ced99 100644 --- a/sources/target_skeleton/etc/inittab +++ b/sources/target_skeleton/etc/inittab @@ -24,10 +24,9 @@ tty2::respawn:/sbin/getty 38400 tty2 #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # Logging junk -tty2::once:/bin/touch /var/log/messages +tty3::once:/bin/touch /var/log/messages tty3::respawn:/usr/bin/tail -f /var/log/messages -tty4::once:/bin/dmesg -tty4::respawn:/usr/bin/tail -f /proc/kmsg +::respawn:/sbin/klogd -n # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot diff --git a/sources/target_skeleton/etc/protocols b/sources/target_skeleton/etc/protocols index b175544a4..e717657c5 100644 --- a/sources/target_skeleton/etc/protocols +++ b/sources/target_skeleton/etc/protocols @@ -1,5 +1,5 @@ # /etc/protocols: -# $Id: protocols,v 1.2 2002/04/26 11:45:52 andersen Exp $ +# $Id: protocols,v 1.3 2002/04/26 22:01:41 andersen Exp $ # # Internet (IP) protocols # diff --git a/sources/target_skeleton/etc/random-seed b/sources/target_skeleton/etc/random-seed Binary files differnew file mode 100644 index 000000000..f26038adc --- /dev/null +++ b/sources/target_skeleton/etc/random-seed diff --git a/sources/target_skeleton/etc/resolv.conf b/sources/target_skeleton/etc/resolv.conf index 423dd57a4..71a86dd76 100644 --- a/sources/target_skeleton/etc/resolv.conf +++ b/sources/target_skeleton/etc/resolv.conf @@ -1,2 +1,2 @@ domain dev.null -nameserver 10.0.0.1 +nameserver 127.0.0.1 diff --git a/sources/target_skeleton/etc/services b/sources/target_skeleton/etc/services index 49d6e4c7c..9462af38c 100644 --- a/sources/target_skeleton/etc/services +++ b/sources/target_skeleton/etc/services @@ -1,5 +1,5 @@ # /etc/services: -# $Id: services,v 1.2 2002/04/26 11:45:52 andersen Exp $ +# $Id: services,v 1.3 2002/04/26 22:01:41 andersen Exp $ # # Network services, Internet style # |