Debian Codegraph @

lib/prcopyleft

raw
1 #! /bin/bash
2
3 #*********************************************************************
4 #
5 # This script is part of FAI (Fully Automatic Installation)
6 # (c) 2003-2026 by Thomas Lange, [email protected]
7 # Universitaet zu Koeln
8 #
9 #*********************************************************************
10
11 # variables needed: FAI_VERSION, do_init_tasks
12
13 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14 _prcopyleft() {
15
16 cat <<-EOF
17 -------------------------------------------------
18 Fully Automatic Installation - FAI
19
20 $FAI_VERSION (c) 1999-2026
21 Thomas Lange <[email protected]>
22 -------------------------------------------------
23 EOF
24 }
25 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
26
27 # color logo only if initial install
28 color_logo=$do_init_tasks
29
30 # set red color, but not on some archs
31 [ -e /.nocolorlogo ] && color_logo=0
32 [ -n "$console" ] && color_logo=0 # no red logo if console was defined on the command line
33 case $HOSTTYPE in
34 sparc*|powerpc*) color_logo=0 ;;
35 esac
36
37 [ $color_logo -eq 1 ] && echo -ne "\ec\e[1;31m"
38
39 _prcopyleft | tee -a $LOGDIR/fai.log
40
41 if [ $color_logo -eq 1 ]; then
42 echo -ne "\e[7;0r"
43 echo -ne "\e[9B\e[1;m"
44 fi