initscripts: don't exit in sysfs.sh as this is sources

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4728 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2008-06-25 15:12:21 +00:00
parent 6b0a7968b4
commit 1d73583a58
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,14 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: sysfs
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mount kernel virtual file systems.
# Description: Mount initial set of virtual filesystems the kernel
# provides and that are required by everything.
### END INIT INFO
if [ -e /proc ] && ! [ -e /proc/mounts ]; then
mount -t proc proc /proc
@ -7,5 +17,3 @@ fi
if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
mount sysfs /sys -t sysfs
fi
exit 0