summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts')
-rw-r--r--meta/packages/initscripts/initscripts-1.0/sysfs.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/sysfs.sh b/meta/packages/initscripts/initscripts-1.0/sysfs.sh
index 4486128ad5..f779a6e881 100644
--- a/meta/packages/initscripts/initscripts-1.0/sysfs.sh
+++ b/meta/packages/initscripts/initscripts-1.0/sysfs.sh
@@ -1,4 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: sysfs
4# Required-Start:
5# Required-Stop:
6# Default-Start: S
7# Default-Stop:
8# Short-Description: Mount kernel virtual file systems.
9# Description: Mount initial set of virtual filesystems the kernel
10# provides and that are required by everything.
11### END INIT INFO
2 12
3if [ -e /proc ] && ! [ -e /proc/mounts ]; then 13if [ -e /proc ] && ! [ -e /proc/mounts ]; then
4 mount -t proc proc /proc 14 mount -t proc proc /proc
@@ -7,5 +17,3 @@ fi
7if [ -e /sys ] && grep -q sysfs /proc/filesystems; then 17if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
8 mount sysfs /sys -t sysfs 18 mount sysfs /sys -t sysfs
9fi 19fi
10
11exit 0