projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d837eb
)
base/dracut-lib.sh: add ismounted()
author
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:34:34 +0000
(13:34 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:34:34 +0000
(13:34 +0200)
modules.d/99base/dracut-lib.sh
patch
|
blob
|
history
diff --git
a/modules.d/99base/dracut-lib.sh
b/modules.d/99base/dracut-lib.sh
index
e976351
..
6cb288b
100755
(executable)
--- a/
modules.d/99base/dracut-lib.sh
+++ b/
modules.d/99base/dracut-lib.sh
@@
-330,6
+330,13
@@
udevproperty() {
fi
}
+ismounted() {
+ while read a m a; do
+ [ "$m" = "$1" ] && return 0
+ done < /proc/mounts
+ return 1
+}
+
wait_for_if_up() {
local cnt=0
while [ $cnt -lt 20 ]; do