From b5fa5b45283afb697c327fcebaabf0501eeb2920 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Mon, 31 Jan 2011 22:03:43 +0100 Subject: poll_device: Remove -h It seems ash follows symlinks with -b. --- init_functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init_functions') diff --git a/init_functions b/init_functions index 37b9ebb..58b84b5 100644 --- a/init_functions +++ b/init_functions @@ -16,12 +16,12 @@ poll_device() { fi if [ "${udevd_running}" -eq 1 ]; then echo "Waiting ${seconds} seconds for device ${device} ..." - while [ ! -b "${device}" -a ! -h "${device}" -a ${seconds} -gt 0 ]; do + while [ ! -b "${device}" -a ${seconds} -gt 0 ]; do sleep 1 seconds=$((${seconds}-1)) done fi - [ -b "${device}" -o -h "${device}" ] + [ -b "${device}" ] } launch_interactive_shell() { -- cgit v1.2.3-24-g4f1b