mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 00:49:43 +02:00
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
This commit is contained in:
parent
b8e09b9b3c
commit
cb108e4d04
@ -2,6 +2,16 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
# Copyright (C) 2010 Vertical Communications
|
# Copyright (C) 2010 Vertical Communications
|
||||||
|
|
||||||
|
do_move_devtmpfs() {
|
||||||
|
foo="`grep devtmpfs /proc/mounts`"
|
||||||
|
x=${foo#* }
|
||||||
|
x=${x%% *}
|
||||||
|
|
||||||
|
if [ "$x" != "/dev" ] ; then
|
||||||
|
mount -o move "$x" /dev
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
do_mount_devfs() {
|
do_mount_devfs() {
|
||||||
mount devfs /dev -t devfs
|
mount devfs /dev -t devfs
|
||||||
}
|
}
|
||||||
@ -15,7 +25,9 @@ do_mount_udev() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
choose_device_fs() {
|
choose_device_fs() {
|
||||||
if grep -q devfs /proc/filesystems; then
|
if grep -q devtmpfs /proc/mounts; then
|
||||||
|
do_move_devtmpfs
|
||||||
|
elif grep -q devfs /proc/filesystems; then
|
||||||
do_mount_devfs
|
do_mount_devfs
|
||||||
elif [ -x /sbin/hotplug2 ]; then
|
elif [ -x /sbin/hotplug2 ]; then
|
||||||
do_mount_hotplug
|
do_mount_hotplug
|
||||||
|
Loading…
Reference in New Issue
Block a user