mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 03:03:02 +01:00
(From OE-Core rev: fdb3d74458cd36a0fe53ee097394acc37d658ce9) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
540 B
Bash
20 lines
540 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: mountvirtfs
|
|
# 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
|
|
fi
|
|
|
|
if [ -e /sys ] && grep -q sysfs /proc/filesystems && ! [ -e /sys/class ]; then
|
|
mount -t sysfs sysfs /sys
|
|
fi
|