mirror of
https://github.com/fspc/gbootroot.git
synced 2025-03-04 11:53:26 -05:00
The newest rc*, works nice.
This commit is contained in:
parent
be1f96b004
commit
c536524d28
@ -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
|
|
||||||
|
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user