Blame 0012-base-init-fix-cdrom-polling.patch
|
Harald Hoyer |
d97cfa |
From e620bb01da5c957c311f336c2f963c9bd9f692c5 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
d97cfa |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
d97cfa |
Date: Wed, 30 Mar 2011 00:01:00 +0200
|
|
Harald Hoyer |
d97cfa |
Subject: [PATCH] base/init: fix cdrom polling
|
|
Harald Hoyer |
d97cfa |
|
|
Harald Hoyer |
d97cfa |
---
|
|
Harald Hoyer |
d97cfa |
modules.d/99base/init | 2 +-
|
|
Harald Hoyer |
d97cfa |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
d97cfa |
|
|
Harald Hoyer |
d97cfa |
diff --git a/modules.d/99base/init b/modules.d/99base/init
|
|
Harald Hoyer |
d97cfa |
index b6f4e92..a30706b 100755
|
|
Harald Hoyer |
d97cfa |
--- a/modules.d/99base/init
|
|
Harald Hoyer |
d97cfa |
+++ b/modules.d/99base/init
|
|
Harald Hoyer |
d97cfa |
@@ -234,7 +234,7 @@ while :; do
|
|
Harald Hoyer |
d97cfa |
strstr "$(udevadm info --query=env --path=${cdrom##/sys})" \
|
|
Harald Hoyer |
d97cfa |
ID_CDROM_MEDIA && continue
|
|
Harald Hoyer |
d97cfa |
|
|
Harald Hoyer |
d97cfa |
- if [ -e "$cdrom"/events_poll_msecs -a -n -e "/tmp/.poll_${cdrom##*/}" ]; then
|
|
Harald Hoyer |
d97cfa |
+ if [ -e "$cdrom"/events_poll_msecs -a ! -e "/tmp/.poll_${cdrom##*/}" ]; then
|
|
Harald Hoyer |
d97cfa |
msecs=$(while read a; do echo $a;done < "$cdrom"/events_poll_msecs)
|
|
Harald Hoyer |
d97cfa |
if [ "$msecs" = "-1" ]; then
|
|
Harald Hoyer |
d97cfa |
echo 250 > "$cdrom"/events_poll_msecs
|