mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user