From dea5e1802f2fc9a364dd65a93c93f43959ab6e79 Mon Sep 17 00:00:00 2001 From: freesource Date: Sat, 1 Dec 2001 21:42:26 +0000 Subject: [PATCH] The S and normal runlevel rc used by Example.yard. --- yard/replacements/etc/init.d/rc.example | 25 +++++++++++++ yard/replacements/etc/init.d/rcS.example | 46 ++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100755 yard/replacements/etc/init.d/rc.example create mode 100755 yard/replacements/etc/init.d/rcS.example diff --git a/yard/replacements/etc/init.d/rc.example b/yard/replacements/etc/init.d/rc.example new file mode 100755 index 0000000..8f1d0c0 --- /dev/null +++ b/yard/replacements/etc/init.d/rc.example @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $Id$ +# Used by the Example.yard template. +# /etc/rc: System initialization script. +# + +# Compute module dependencies +/sbin/depmod -a + +# Start up kerneld if desired +#/sbin/kerneld + +# Mount everything mentioned in fstab +# .. but proc needs to be mounted first, anyways. +/bin/mount -anv +mount -v -o remount,rw -n /dev/ram0 / + +# Set host name +/bin/hostname bootroot + +# If you need to load a keyboard map, uncomment this line and +# fix the pathnames: +#/usr/sbin/loadkeys /usr/lib/kbd/keytables/defkeymap.map + diff --git a/yard/replacements/etc/init.d/rcS.example b/yard/replacements/etc/init.d/rcS.example new file mode 100755 index 0000000..b5df0a3 --- /dev/null +++ b/yard/replacements/etc/init.d/rcS.example @@ -0,0 +1,46 @@ +#!/bin/sh +# +# $Id$ +# Used by the Example.yard template. +# /etc/rc: System initialization script. +# + +# Compute module dependencies +/sbin/depmod -a + +# Start up kerneld if desired +#/sbin/kerneld + +# Mount everything mentioned in fstab +# .. but proc needs to be mounted first, anyways. +/bin/mount -anv +mount -v -o remount,rw -n /dev/ram0 / + +# Set host name +/bin/hostname bootroot + +# If you need to load a keyboard map, uncomment this line and +# fix the pathnames: +#/usr/sbin/loadkeys /usr/lib/kbd/keytables/defkeymap.map + +# create utmp if it doesn't already exist +( cd /var/run && \ + find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ + ! -newer /etc/mtab -exec rm -f -- {} \; ) +: > /var/run/utmp +if grep -q ^utmp: /etc/group +then + chmod 664 /var/run/utmp + chown root:utmp /var/run/utmp +fi + +# create wtmp if it doesn't already exist +( cd /var/run && \ + find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ + ! -newer /etc/mtab -exec rm -f -- {} \; ) +: > /var/log/wtmp +if grep -q ^utmp: /etc/group +then + chmod 664 /var/log/wtmp + chown root:utmp /var/log/wtmp +fi