Skip to content
Browse files

Source /etc/grml/grml-live.conf only if it can be read

We no longer depend on the file /etc/grml/grml-live.conf as
we keep system defaults in the program nowadays, so do not
fail if file can not be read.

Thanks: Evgeni Golov for reporting
  • Loading branch information...
1 parent fb6d430 commit 9c4a6913833f105dc6581fc7aa9f737714aa9686 @mika mika committed Sep 26, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 grml-live
View
9 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 {{{

0 comments on commit 9c4a691

Please sign in to comment.
Something went wrong with that request. Please try again.