init: fix cdrom polling loop
parent
56f184310a
commit
2937028c54
|
|
@ -195,7 +195,7 @@ while :; do
|
||||||
# skip, if cdrom medium was already found
|
# skip, if cdrom medium was already found
|
||||||
strstr "$(udevadm info --query=env --path=${cdrom##/sys})" \
|
strstr "$(udevadm info --query=env --path=${cdrom##/sys})" \
|
||||||
ID_CDROM_MEDIA && continue
|
ID_CDROM_MEDIA && continue
|
||||||
echo change > "$cdrom"
|
echo change > "$cdrom/uevent"
|
||||||
done
|
done
|
||||||
|
|
||||||
i=$(($i+1))
|
i=$(($i+1))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue