Date:2010-07-24 21:21:27 (13 years 8 months ago)
Author:acoul
Commit:cb108e4d04ee53aab2cae3886d80c107bbd361f0
Message:package/base-files: add support for devtmpfs (thank you rauchwolke at gmx.net)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22379 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/base-files/files/lib/preinit/20_device_fs_mount (2 diffs)

Change Details

package/base-files/files/lib/preinit/20_device_fs_mount
22# Copyright (C) 2006 OpenWrt.org
33# Copyright (C) 2010 Vertical Communications
44
5do_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
515do_mount_devfs() {
616    mount devfs /dev -t devfs
717}
...... 
1525}
1626
1727choose_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
1931        do_mount_devfs
2032    elif [ -x /sbin/hotplug2 ]; then
2133        do_mount_hotplug

Archive Download the corresponding diff file



interactive