From 4976072037baede0faeaf94362e282f26f19d6af Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 17 Nov 2012 19:29:44 -0500 Subject: init: remove needless workaround for empty rootdelay Adjust the test in poll_device to look for either an unset OR an empty 2nd parameter. Signed-off-by: Dave Reisner --- init_functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init_functions') diff --git a/init_functions b/init_functions index 2bd07bd..bdc6cc9 100644 --- a/init_functions +++ b/init_functions @@ -10,7 +10,7 @@ err () { poll_device() { local device=$1 seconds=${2//[!0-9]} - [ -z "$seconds" ] && seconds=10 + [ "${seconds:-x}" = x ] && seconds=10 deciseconds=$(( seconds * 10 )) # tenths of a second -- cgit v1.2.3-24-g4f1b