Source /etc/grml/grml-live.conf only if it can be read
[grml-live.git] / grml-live
index 0aed77e..a7db0d8 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -147,7 +147,14 @@ fi
 
 # source main configuration file:
 LIVE_CONF=/etc/grml/grml-live.conf
-. $LIVE_CONF
+if ! [ -r "$LIVE_CONF" ] ; then
+  log "Confuguration file $LIVE_CONF can not be read, ignoring"
+else
+  log   "Sourcing configuration file $LIVE_CONF"
+  einfo "Sourcing configuration file $LIVE_CONF"
+  . $LIVE_CONF
+  eend $?
+fi
 # }}}
 
 # umount all directories {{{
@@ -1221,7 +1228,7 @@ fi
 # create md5sum file:
 if [ -z "$BOOTSTRAP_ONLY" ] ; then
   ( cd $BUILD_OUTPUT/GRML/"${GRML_NAME}" &&
-  find .. -type f -not -name md5sums -not -name isolinux.bin -exec md5sum {} \; > md5sums )
+  find ../.. -type f -not -name md5sums -not -name isolinux.bin -exec md5sum {} \; > md5sums )
 fi
 # }}}