Change Details
package/base-files/files/lib/preinit/20_device_fs_mount |
2 | 2 | # Copyright (C) 2006 OpenWrt.org |
3 | 3 | # Copyright (C) 2010 Vertical Communications |
4 | 4 | |
| 5 | do_move_devtmpfs() { |
| 6 | foo="`grep devtmpfs /proc/mounts`" |
| 7 | x=${foo#* } |
| 8 | x=${x%% *} |
| 9 | |
| 10 | if [ "$x" != "/dev" ] ; then |
| 11 | mount -o move "$x" /dev |
| 12 | fi |
| 13 | } |
| 14 | |
5 | 15 | do_mount_devfs() { |
6 | 16 | mount devfs /dev -t devfs |
7 | 17 | } |
... | ... | |
15 | 25 | } |
16 | 26 | |
17 | 27 | choose_device_fs() { |
18 | | if grep -q devfs /proc/filesystems; then |
| 28 | if grep -q devtmpfs /proc/mounts; then |
| 29 | do_move_devtmpfs |
| 30 | elif grep -q devfs /proc/filesystems; then |
19 | 31 | do_mount_devfs |
20 | 32 | elif [ -x /sbin/hotplug2 ]; then |
21 | 33 | do_mount_hotplug |
Download the corresponding diff file