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:
7931bf0
)
base/init: fix cdrom polling
author
Harald Hoyer
<harald@redhat.com>
Tue, 29 Mar 2011 22:01:00 +0000
(
00:01
+0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 29 Mar 2011 22:01:00 +0000
(
00:01
+0200)
modules.d/99base/init
patch
|
blob
|
history
diff --git
a/modules.d/99base/init
b/modules.d/99base/init
index
b6f4e92
..
a30706b
100755
(executable)
--- a/
modules.d/99base/init
+++ b/
modules.d/99base/init
@@
-234,7
+234,7
@@
while :; do
strstr "$(udevadm info --query=env --path=${cdrom##/sys})" \
ID_CDROM_MEDIA && continue
- if [ -e "$cdrom"/events_poll_msecs -a
-n
-e "/tmp/.poll_${cdrom##*/}" ]; then
+ if [ -e "$cdrom"/events_poll_msecs -a
!
-e "/tmp/.poll_${cdrom##*/}" ]; then
msecs=$(while read a; do echo $a;done < "$cdrom"/events_poll_msecs)
if [ "$msecs" = "-1" ]; then
echo 250 > "$cdrom"/events_poll_msecs