1 |
#!/bin/sh |
#!/bin/sh |
2 |
# $Id$ |
# $Id$ |
3 |
|
|
4 |
|
source /etc/installer.conf |
5 |
|
|
6 |
convert_to_message() |
convert_to_message() |
7 |
{ |
{ |
8 |
# only für ncurses gui |
# only für ncurses gui |
48 |
|
|
49 |
${action} | while read line |
${action} | while read line |
50 |
do |
do |
51 |
|
# add an entry to install log |
52 |
|
echo "${line}" >> ${INSTALLER_LOG} |
53 |
|
|
54 |
case $line in |
case $line in |
55 |
#*fetching*:*|*!fetch*|*fetch\ complete*) convert_to_message --fetch ${line}; convert_to_percent ${line};; |
#*fetching*:*|*!fetch*|*fetch\ complete*) convert_to_message --fetch ${line}; convert_to_percent ${line};; |
56 |
#*unpacking*:*|*!unpack*) convert_to_message --unpack ${line}; convert_to_percent ${line};; |
#*unpacking*:*|*!unpack*) convert_to_message --unpack ${line}; convert_to_percent ${line};; |
68 |
|
|
69 |
install_stage() |
install_stage() |
70 |
{ |
{ |
71 |
NOCOLORS=true bootstrap-default-system 2> /dev/null |
# redirect stderr to stdout! |
72 |
|
NOCOLORS=true bootstrap-default-system 2>&1 |
73 |
} |
} |
74 |
|
|
75 |
case $1 in |
case $1 in |