summaryrefslogtreecommitdiff
path: root/recipes/initscripts/initscripts-1.0/sysfs.sh
blob: b2426147a78459f067ab4d42f439366a578d0dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ -e /proc ] && ! [ -e /proc/mounts ]; then
  mount -t proc proc /proc
fi

if [ -e /sys ] && ! [ -e /sys/kernel ] && grep -q sysfs /proc/filesystems; then
  mount sysfs /sys -t sysfs
fi

exit 0