summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/sysfs.sh
blob: 4486128ad520b03243e011f6346093d1f300fff4 (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 ] && grep -q sysfs /proc/filesystems; then
  mount sysfs /sys -t sysfs
fi

exit 0