Browse Source

early: improved init.sh to check if the kernel has devtmpfs support before using it, and to use the old-style tmpfs method if not

user/chris/test/patchcksum
Christian Wiese 14 years ago
parent
commit
f0f661ab6e
1 changed files with 12 additions and 3 deletions
  1. +12
    -3
      target/early/initramfs/init.sh

+ 12
- 3
target/early/initramfs/init.sh

@ -62,9 +62,18 @@ status
[ -x /bin/dmesg ] && /bin/dmesg -n 3
title "Mounting devtmpfs at /dev"
check mount -n -t devtmpfs devtmpfs /dev
status
if grep -q devtmpfs /proc/filesystems; then
title "Preparing /dev (devtmpfs)"
check mount -n -t devtmpfs devtmpfs /dev
status
else
title "Preparing /dev (tmpfs)"
check mount -n -t tmpfs none /dev
status
title "Populating initial device nodes"
check mdev -s
status
fi
title "Setting mdev as kernel hotplug helper"
echo "/sbin/mdev" > /proc/sys/kernel/hotplug

Loading…
Cancel
Save