From fe5a7abcfef76c482d5fc4232dc221ca8db29974 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 19 Nov 2006 23:51:39 +0000 Subject: 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 --- initramfs/initrd-stuff/etc/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'initramfs/initrd-stuff/etc/functions') 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 , 14-11-2006 +# Dirk von Suchodoletz , 19-11-2006 # Felix Endres, 30-04-2006 # (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` -- cgit v1.2.3-55-g7522