[PATCH] run-hald.sh: allow running hald without hal-info

Guillem Jover guillem.jover at nokia.com
Fri Oct 31 16:22:01 PDT 2008


Change the error to a warning, so that hald can be tested without
the hal-info fdis around.
---
 hald/run-hald.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hald/run-hald.sh b/hald/run-hald.sh
index 44c5173..2edf2b3 100755
--- a/hald/run-hald.sh
+++ b/hald/run-hald.sh
@@ -19,12 +19,12 @@ else
     mkdir -p $HALD_TMPDIR
     make -C ../policy install DESTDIR=$HALD_TMPDIR prefix=/
     make -C ../fdi install DESTDIR=$HALD_TMPDIR prefix=/ && \
-    if [ ! -d $information_fdidir ] ; then
-    	echo "ERROR: You need to checkout hal-info in the same level"
+    if [ -d $information_fdidir ] ; then
+        make -C $information_fdidir install DESTDIR=$HALD_TMPDIR prefix=/
+    else
+        echo "WARNING: You need to checkout hal-info in the same level"
     	echo "directory as hal to get the information fdi files."
-    	exit
     fi
-    make -C $information_fdidir install DESTDIR=$HALD_TMPDIR prefix=/
 fi
 export HAL_FDI_SOURCE_PREPROBE=$HALD_TMPDIR/share/hal/fdi/preprobe
 export HAL_FDI_SOURCE_INFORMATION=$HALD_TMPDIR/share/hal/fdi/information
-- 
1.6.0.2



More information about the hal mailing list