2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
6 foo
="`grep devtmpfs /proc/mounts`"
10 if [ "$x" != "/dev" ] ; then
11 mount
-o move
"$x" /dev
16 mount devfs
/dev
-t devfs
20 mount
-t tmpfs tmpfs
/dev
-o size
=512K
24 mount
-n -t tmpfs
-o mode
=0755 udev
/dev
28 if grep -q devtmpfs
/proc
/mounts
; then
30 elif grep -q devfs
/proc
/filesystems
; then
32 elif [ -x /sbin
/hotplug2
]; then
34 elif [ -x /sbin
/udevd
]; then
39 boot_hook_add preinit_essential choose_device_fs