add functions.sh
[grml-live.git] / scripts / grml-live
1 #!/bin/zsh
2 # Filename:      grml-live
3 # Purpose:       build script for creating grml live-cd
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Thu Feb 08 22:35:43 CET 2007
8 ################################################################################
9
10 LANG=C
11 LC_ALL=C
12
13 DEBUG=1        # be more verbose on stdout?
14 DEBUG_SYSLOG=1 # log actions to syslog?
15
16 # functions
17 FUNCTIONSFILE='functions.sh'
18
19 for file in $FUNCTIONSFILE /etc/grml/lsb-functions  /etc/grml/script-functions ; do
20     [[ -r $FUNCTIONSFILE ]] && source $file || { print "Reading $file failed, fatal error, exiting." ; exit 1 }
21 done
22
23 trap bailout 1 2 3 15
24
25 # main execution
26 debug "executing cmdline_options" ; cmdline_options
27
28 ## END OF FILE #################################################################
29 # vim: ai tw=80 ft=zsh expandtab