2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
6 local mnt
="$(grep devtmpfs /proc/mounts)"
7 mnt
="${mnt#* }"; mnt
="${mnt%% *}"
9 [ "$mnt" = "/dev" ] || mount
-o move
"$mnt" /dev
13 mount devfs
/dev
-t devfs
17 mount
-t tmpfs tmpfs
/dev
-o size
=512K
21 mount
-n -t tmpfs
-o mode
=0755 udev
/dev
25 if grep -q devtmpfs
/proc
/mounts
; then
27 elif grep -q devfs
/proc
/filesystems
; then
29 elif [ -x /sbin
/hotplug2
]; then
31 elif [ -x /sbin
/udevd
]; then
36 boot_hook_add preinit_essential choose_device_fs