From 7797debad9c55949482e111992c3cd10b221809f Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 3 Aug 2009 08:24:21 -0400 Subject: Do not rely on -L test; use -h instead. See `man dash` Signed-off-by: Loui Chang Signed-off-by: Aaron Griffin --- init_functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init_functions') diff --git a/init_functions b/init_functions index 0e501ca..968258a 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 ! -L "${device}" -a ${seconds} -gt 0 ]; do + while [ ! -b "${device}" -a ! -h "${device}" -a ${seconds} -gt 0 ]; do sleep 1 seconds=$((${seconds}-1)) done - [ -b "${device}" -o -L "${device}" ] + [ -b "${device}" -o -h "${device}" ] } -- cgit v1.2.3-24-g4f1b