mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-05 15:11:06 +02:00
[package] base-files: localize variable in do_move_devtmpfs(), remove extra temporary variable and shorten conditional
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22380 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cb108e4d04
commit
6a91be99c7
@ -3,13 +3,10 @@
|
|||||||
# Copyright (C) 2010 Vertical Communications
|
# Copyright (C) 2010 Vertical Communications
|
||||||
|
|
||||||
do_move_devtmpfs() {
|
do_move_devtmpfs() {
|
||||||
foo="`grep devtmpfs /proc/mounts`"
|
local mnt="$(grep devtmpfs /proc/mounts)"
|
||||||
x=${foo#* }
|
mnt="${mnt#* }"; mnt="${mnt%% *}"
|
||||||
x=${x%% *}
|
|
||||||
|
|
||||||
if [ "$x" != "/dev" ] ; then
|
[ "$mnt" = "/dev" ] || mount -o move "$mnt" /dev
|
||||||
mount -o move "$x" /dev
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_mount_devfs() {
|
do_mount_devfs() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user