matrix-gui-e: bump PR for init file fixes
[openembedded.git] / recipes / initscripts / initscripts-openmoko / mountkernfs.sh
blob1ed09fcf05add44cdd50c732b920cd8bba0fe82c
1 #!/bin/sh
3 supported_kernel() {
4 case "$(uname -r)" in
5 2.[012345].*|2.6.[0-9]|2.6.[0-9][!0-9]*) return 1 ;;
6 2.6.1[0-7]|2.6.1[0-7][!0-9]*) return 1 ;;
7 esac
8 return 0
11 check_kernel() {
12 if ! supported_kernel; then
13 echo "WARNING: kernel < 2.6.18"
16 if ! grep -qs devpts /proc/filesystems; then
17 echo "WARNING: kernel does not support devpts"
20 if ! grep -qs tmpfs /proc/filesystems; then
21 echo "WARNING: kernel does not support tmpfs"
25 if [ -d /proc ]; then
26 mount -n -t proc proc /proc
29 check_kernel
31 if [ -d /sys ]; then
32 mount -n -t sysfs sysfs /sys