X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=db8fd63f76bace47d34b6f8fd78076f574268efb;hp=e1d71876455dd50afb31d4c2035f73379ba6777c;hb=b8872624221cbf7f5d28005eabe2682692a98faf;hpb=5332d22f4acc07403d4cb17d6258542703a8f8d3 diff --git a/grml-live b/grml-live index e1d7187..db8fd63 100755 --- a/grml-live +++ b/grml-live @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Wed Oct 24 10:11:02 CEST 2007 [mika] +# Latest change: Sun Oct 28 14:43:27 CET 2007 [mika] ################################################################################ # read configuration files, set some misc variables {{{ @@ -71,8 +71,17 @@ trap bailout 1 2 3 15 [ -n "$RELEASENAME" ] || RELEASENAME="grml-live rocks" [ -n "$GRML_NAME" ] || GRML_NAME='grml' -[ -d /var/log/grml-live ] || mkdir /var/log/grml-live -LOGFILE=/var/log/grml-live/"$(date +%Y-%m-%d)_$$.log" +# logfile: +if [ -z "$LOGFILE" ] ; then + LOGFILE=/var/log/grml-live.log +fi +touch $LOGFILE +chown root:adm $LOGFILE +chmod 640 $LOGFILE +# clean/zero logfile: +if [ -n "$ZERO_LOGFILE" ] ; then + echo -n > $LOGFILE +fi NFSROOT_CONF=/etc/grml/fai/make-fai-nfsroot.conf @@ -207,8 +216,8 @@ if [ -z "$FORCE" ] ; then [ -n "$BOOT_METHOD" ] && echo " Boot method: $BOOT_METHOD" [ -n "$TEMPLATE_DIRECTORY" ] && echo " Template files: $TEMPLATE_DIRECTORY" [ -n "$FAI_ARGS" ] && echo " additional arguments for FAI: $FAI_ARGS" - [ -n "$VERBOSE" ] && echo " Using VERBOSE mode." [ -n "$LOGFILE" ] && echo " Logging to file: $LOGFILE" + [ -n "$VERBOSE" ] && echo " Using VERBOSE mode." echo echo -n "Is this ok for you? [y/N] " read a