generic-poky/meta/packages/initscripts/initscripts-1.0/sysfs.sh

12 lines
184 B
Bash

#!/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