summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-21 01:58:11 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-21 01:58:11 +0100
commitc73baee87913e6e92f0cb82d1f999528b51c7bb7 (patch)
tree72e4625916477e9ebf3b65eb05bcaded2920ad49 /init_functions
parent568e4aa7b19c388de3ebc9c651996d1b577c3f09 (diff)
downloadmkinitcpio-c73baee87913e6e92f0cb82d1f999528b51c7bb7.tar.gz
mkinitcpio-c73baee87913e6e92f0cb82d1f999528b51c7bb7.tar.xz
Allow the second parameter of poll_device to be 0 - this fixes rootdelay=0
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_functions b/init_functions
index 45ca896..aad406d 100644
--- a/init_functions
+++ b/init_functions
@@ -9,7 +9,7 @@ err () {
poll_device() {
device="$1"
- if [ "$2" -gt 0 ]; then
+ if [ "$2" -ge 0 ]; then
seconds="$2"
else
seconds=5