[Grml-devel] [PATCH 2/4] Possibility to give LIVE_CONF as env. variable

Krisztian VASAS iron at ironiq.hu
Wed Jun 18 12:20:42 CEST 2014


---
 grml-live | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grml-live b/grml-live
index 05be0e3..35d7fd2 100755
--- a/grml-live
+++ b/grml-live
@@ -147,7 +147,7 @@ else
 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
-- 
1.9.1



More information about the Grml-devel mailing list