summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-11-20 00:51:39 +0100
committerDirk von Suchodoletz2006-11-20 00:51:39 +0100
commitfe5a7abcfef76c482d5fc4232dc221ca8db29974 (patch)
treef97611a66b042a664831020571758e696bddc956 /initramfs/initrd-stuff/etc/functions
parentTiming issue for too fast systems fixed (hwautocfg ended in stage4 (diff)
downloadcore-fe5a7abcfef76c482d5fc4232dc221ca8db29974.tar.gz
core-fe5a7abcfef76c482d5fc4232dc221ca8db29974.tar.xz
core-fe5a7abcfef76c482d5fc4232dc221ca8db29974.zip
Support for commercial X servers (ATI at the moment ...)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@514 95ad53e4-c205-0410-b2fa-d234c58c8868
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`