# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Mon Nov 26 15:13:41 CET 2007 [mika]
+# Latest change: Sun Dec 09 16:24:55 CET 2007 [mika]
################################################################################
# read configuration files, set some misc variables {{{
if [ -n "$ZERO_FAI_LOGFILE" ] ; then
if [ -d /var/log/fai/"$HOSTNAME" ] ; then
rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last)"
+ rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last-dirinstall)"
+ rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last-softupdate)"
fi
fi
specify it on the command line using the -o option."
# }}}
+# read local (non-packaged) configuration {{{
+LOCAL_CONFIG=/etc/grml/grml-live.local
+if [ -r "$LOCAL_CONFIG" ] ; then
+ log "Sourcing $LOCAL_CONFIG"
+ . $LOCAL_CONFIG
+else
+ log "No $LOCAL_CONFIG found, not sourcing it"
+ LOCAL_CONFIG=''
+fi
+# }}}
+
# ask user whether the setup is ok {{{
if [ -z "$FORCE" ] ; then
echo
echo " FAI classes: $CLASSES"
echo " main directory: $OUTPUT"
[ -n "$CONFIG" ] && echo " configuration: $CONFIG"
+ [ -r "$LOCAL_CONFIG" ] && echo " local config: /etc/grml/grml-live.local"
[ -n "$CHROOT_OUTPUT" ] && echo " chroot target: $CHROOT_OUTPUT"
[ -n "$BUILD_OUTPUT" ] && echo " build target: $BUILD_OUTPUT"
[ -n "$ISO_OUTPUT" ] && echo " ISO target: $ISO_OUTPUT"
echo
fi
-# read local (non-packaged) configuration:
-LOCAL_CONFIG=/etc/grml/grml-live.local
-if [ -r "$LOCAL_CONFIG" ] ; then
- log "Sourcing $LOCAL_CONFIG"
- . $LOCAL_CONFIG
-else
- LOCAL_CONFIG=''
-fi
-
if [ -n "$CONFIG" ] ; then
if ! [ -f "$CONFIG" ] ; then
log "Sorry, $CONFIG could not be read. Exiting. [$(date)]"