# Copyright (C) 2010 Vertical Communications
do_move_devtmpfs() {
- foo="`grep devtmpfs /proc/mounts`"
- x=${foo#* }
- x=${x%% *}
+ local mnt="$(grep devtmpfs /proc/mounts)"
+ mnt="${mnt#* }"; mnt="${mnt%% *}"
- if [ "$x" != "/dev" ] ; then
- mount -o move "$x" /dev
- fi
+ [ "$mnt" = "/dev" ] || mount -o move "$mnt" /dev
}
do_mount_devfs() {
}
do_mount_hotplug() {
- mount -t tmpfs tmpfs /dev -o size=512K
+ mount -t tmpfs tmpfs /dev -o mode=0755,size=512K
}
do_mount_udev() {