diff options
Diffstat (limited to 'init_functions')
-rw-r--r-- | init_functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init_functions b/init_functions index cdc7a9f..0e501ca 100644 --- a/init_functions +++ b/init_functions @@ -15,9 +15,9 @@ poll_device() { seconds=5 fi echo "Waiting ${seconds} seconds for device ${device} ..." - while [ ! -b "${device}" -a ${seconds} -gt 0 ]; do + while [ ! -b "${device}" -a ! -L "${device}" -a ${seconds} -gt 0 ]; do sleep 1 seconds=$((${seconds}-1)) done - [ -b "${device}" ] + [ -b "${device}" -o -L "${device}" ] } |