diff options
Diffstat (limited to 'init_functions')
-rw-r--r-- | init_functions | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/init_functions b/init_functions index aad406d..c165ff0 100644 --- a/init_functions +++ b/init_functions @@ -14,11 +14,13 @@ poll_device() { else seconds=5 fi - echo "Waiting ${seconds} seconds for device ${device} ..." - while [ ! -b "${device}" -a ! -h "${device}" -a ${seconds} -gt 0 ]; do - sleep 1 - seconds=$((${seconds}-1)) - done + if [ "${udevd_running}" -eq 1 ]; then + echo "Waiting ${seconds} seconds for device ${device} ..." + while [ ! -b "${device}" -a ! -h "${device}" -a ${seconds} -gt 0 ]; do + sleep 1 + seconds=$((${seconds}-1)) + done + fi [ -b "${device}" -o -h "${device}" ] } |