From: Harald Hoyer Date: Tue, 29 Mar 2011 22:01:00 +0000 (+0200) Subject: base/init: fix cdrom polling X-Git-Tag: 010~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e620bb01da5c957c311f336c2f963c9bd9f692c5;p=platform%2Fupstream%2Fdracut.git base/init: fix cdrom polling --- diff --git a/modules.d/99base/init b/modules.d/99base/init index b6f4e92..a30706b 100755 --- 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