Possibility to give LIVE_CONF as env. variable
authorKrisztian VASAS <iron@ironiq.hu>
Wed, 18 Jun 2014 10:20:42 +0000 (12:20 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 3 Jul 2014 11:02:43 +0000 (13:02 +0200)
grml-live

index 8eb66c0..7f6bda0 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -147,7 +147,7 @@ else
 fi
 
 # source main configuration file:
 fi
 
 # source main configuration file:
-LIVE_CONF=/etc/grml/grml-live.conf
+[ -z "$LIVE_CONF" ] && LIVE_CONF='/etc/grml/grml-live.conf'
 if ! [ -r "$LIVE_CONF" ] ; then
   ewarn "Configuration file $LIVE_CONF can not be read, ignoring"
 else
 if ! [ -r "$LIVE_CONF" ] ; then
   ewarn "Configuration file $LIVE_CONF can not be read, ignoring"
 else