aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@redhat.com>2000-03-21 10:02:42 +0000
committerBernhard Rosenkraenzer <bero@redhat.com>2000-03-21 10:02:42 +0000
commitc319567f426c9fb656c231e5a8a1b2a4dda248e2 (patch)
tree9bc847a1c7b327c679c4f817885fb77a4d4e1952 /rc.d/rc.sysinit
parentc3abe08528e746b1b1c05b9e8718acdebab3f39a (diff)
downloadinitscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.gz
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.bz2
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.xz
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.zip
Handle /var/shm
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 5a1c80ce..47f622b4 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -11,7 +11,11 @@ if [ -z "$IN_INITLOG" ]; then
fi
# If we're using devfs, start devfsd now - we need the old device names
-[ -e /dev/.devfsd -a -x /sbin/devfsd ] && /sbin/devfsd
+[ -e /dev/.devfsd -a -x /sbin/devfsd ] && /sbin/devfsd /dev
+
+# Mount shm - ignore errors because the only "error" that can occur is
+# a kernel < 2.3.99 which doesn't require /var/shm
+mount -t shm none /var/shm &>/dev/null || :
# Set the path
PATH=/bin:/sbin:/usr/bin:/usr/sbin