--- etc/init.d/rc.S.orig	2009-06-28 13:32:02.000000000 +0000
+++ etc/init.d/rc.S	2009-06-28 13:32:16.000000000 +0000
@@ -97,9 +97,18 @@
 ##########################################################################################
 ## rc.S for 2.6 Kernel
 ##########################################################################################
-[ -f /dev/.hotplug-cache ] || mount -o nosuid -t tmpfs dev /dev
+if [ ! -f /dev/.hotplug-cache ]; then
+	mount -t tmpfs -o nosuid mdev /dev
+	mkdir -p /dev/pts /dev/shm
+	mount -t devpts devpts /dev/pts
+	mount -t tmpfs -o nosuid,nodev,noexec devshm /dev/shm
+	mount -t sysfs -o nosuid,nodev,noexec sysfs  /sys
+fi
+mdev -s
 /sbin/makedevs -d /etc/device.table /
-mount -a
+mount -n /proc
+mount /var
+echo /sbin/mdev >/proc/sys/kernel/hotplug
 ##########################################################################################
 ##########################################################################################
 echo init-start 240 >/dev/watchdog
