summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index d1f86ca1..b657c92f 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -2,7 +2,7 @@
# (included by init, hwautocfg, servconfig, ... within OpenSLX initial
# ramfs)
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 14-11-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 19-11-2006
# Felix Endres, 30-04-2006
# <mj0@uni-freiburg.de> (xenbr), 27-09-2006
# Tobias Maier
@@ -32,7 +32,6 @@ udev_hotplug () {
:
}
-
#############################################################################
# generate events with the sysfs trigger
trigger_device_events () {
@@ -547,6 +546,8 @@ waitfor () {
local file=$1
local maxwait=$2
local count=0
+[ -z $file ] && return 0
+[ -z $maxwait ] && maxwait=5000
while [ ! -e $file ] ; do
echo "waiting ........." > /dev/null
count=`expr $count + 1`