summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0/sysfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'initscripts/initscripts-1.0/sysfs.sh')
-rw-r--r--initscripts/initscripts-1.0/sysfs.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/initscripts/initscripts-1.0/sysfs.sh b/initscripts/initscripts-1.0/sysfs.sh
index e69de29bb2..4486128ad5 100644
--- a/initscripts/initscripts-1.0/sysfs.sh
+++ b/initscripts/initscripts-1.0/sysfs.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -e /proc ] && ! [ -e /proc/mounts ]; then
+ mount -t proc proc /proc
+fi
+
+if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
+ mount sysfs /sys -t sysfs
+fi
+
+exit 0