Browse Source

The newest rc*, works nice.

master
freesource 23 years ago
parent
commit
c536524d28
  1. 18
      yard/replacements/etc/init.d/rc.example
  2. 16
      yard/replacements/etc/init.d/rcS.example

18
yard/replacements/etc/init.d/rc.example

@ -1,25 +1,9 @@
#!/bin/sh #!/bin/sh
# #
# $Id$ # $Id: rc.example,v 1.1 2001/12/01 21:42:26 freesource Exp $
# Used by the Example.yard template. # Used by the Example.yard template.
# /etc/rc: System initialization script. # /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

16
yard/replacements/etc/init.d/rcS.example

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# #
# $Id$ # $Id: rcS.example,v 1.1 2001/12/01 21:42:26 freesource Exp $
# Used by the Example.yard template. # Used by the Example.yard template.
# /etc/rc: System initialization script. # /etc/rcS: System initialization script.
# #
# Compute module dependencies # Compute module dependencies
@ -13,15 +13,17 @@
# Mount everything mentioned in fstab # Mount everything mentioned in fstab
# .. but proc needs to be mounted first, anyways. # .. but proc needs to be mounted first, anyways.
/bin/mount -anv #/bin/mount -anv
mount -v -o remount,rw -n /dev/ram0 / #mount -v -n -o remount,rw /
mount -o remount /
mount -a
# Set host name # Set host name
/bin/hostname bootroot /bin/hostname bootroot
# If you need to load a keyboard map, uncomment this line and # If you need to load a keyboard map, uncomment this line and
# fix the pathnames: # fix the pathnames:
#/usr/sbin/loadkeys /usr/lib/kbd/keytables/defkeymap.map #/usr/sbin/loadkeys /usr/share/keymaps/i386/qwerty/defkeymap.kmap.gz
# create utmp if it doesn't already exist # create utmp if it doesn't already exist
( cd /var/run && \ ( cd /var/run && \
@ -35,8 +37,8 @@ then
fi fi
# create wtmp if it doesn't already exist # create wtmp if it doesn't already exist
( cd /var/run && \ ( cd /var/log && \
find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ find . ! -type d ! -name wtmp \
! -newer /etc/mtab -exec rm -f -- {} \; ) ! -newer /etc/mtab -exec rm -f -- {} \; )
: > /var/log/wtmp : > /var/log/wtmp
if grep -q ^utmp: /etc/group if grep -q ^utmp: /etc/group

Loading…
Cancel
Save