projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base-files: add mtd_get_mac_{ascii,binary} helpers
[openwrt.git]
/
package
/
base-files
/
files
/
lib
/
preinit
/
20_device_fs_mount
diff --git
a/package/base-files/files/lib/preinit/20_device_fs_mount
b/package/base-files/files/lib/preinit/20_device_fs_mount
index 6ba7ccc6f18337ffaf58c1d992df54ebc49294db..7535b3ff9da6a1f41f525c1d51625d5197160cec 100644
(file)
--- a/
package/base-files/files/lib/preinit/20_device_fs_mount
+++ b/
package/base-files/files/lib/preinit/20_device_fs_mount
@@
-3,25
+3,22
@@
# Copyright (C) 2010 Vertical Communications
do_move_devtmpfs() {
# 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 noatime,move "$mnt" /dev
}
do_mount_devfs() {
}
do_mount_devfs() {
- mount
devfs /dev -t devfs
+ mount
-o noatime -t devfs devfs /dev
}
do_mount_hotplug() {
}
do_mount_hotplug() {
- mount -t tmpfs
tmpfs /dev -o size=512K
+ mount -t tmpfs
-o noatime,mode=0755,size=512K tmpfs /dev
}
do_mount_udev() {
}
do_mount_udev() {
- mount -n -t tmpfs -o mode=0755 udev /dev
+ mount -n -t tmpfs -o
noatime,
mode=0755 udev /dev
}
choose_device_fs() {
}
choose_device_fs() {