summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-08-03 14:24:21 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-05 19:29:15 +0200
commit7797debad9c55949482e111992c3cd10b221809f (patch)
treed45d6c9134b26600d31ea5d719dea2d7d066825d /init_functions
parentb8800749b5e301bdf76c8aa1509ea5653d9e7c51 (diff)
downloadmkinitcpio-7797debad9c55949482e111992c3cd10b221809f.tar.gz
mkinitcpio-7797debad9c55949482e111992c3cd10b221809f.tar.xz
Do not rely on -L test; use -h instead.
See `man dash` Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions4
1 files changed, 2 insertions, 2 deletions
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}" ]
}