summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-11-01 13:35:43 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-11-01 13:35:43 +0100
commit7c531b9583a4d8459d1e552e41b1d03374334ca1 (patch)
treeaf5fb0f2e94ad5ba24c50cebaaadea714c208678 /src
parent6abc6238510e06734c2e3377d273970667d38c54 (diff)
oops. forgot to fully implement follow_progress in previous commit + some fixes
Diffstat (limited to 'src')
-rw-r--r--src/lib/lib-ui.sh28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/lib/lib-ui.sh b/src/lib/lib-ui.sh
index bfeae2f..4672916 100644
--- a/src/lib/lib-ui.sh
+++ b/src/lib/lib-ui.sh
@@ -111,8 +111,8 @@ _dia_DIALOG()
# sets EDITOR global variable
#
# TODO: clean this up
-_dia_geteditor() {
- DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
+_dia_get_editor() {
+ _dia_DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
"1" "nano (easier)" \
"2" "vi" 2>$ANSWER
case $(cat $ANSWER) in
@@ -138,7 +138,7 @@ _dia_getavaildisks()
# TODO: also an ugly function
_dia_ask_bootloader()
{
- DIALOG --colors --menu "Which bootloader would you like to use? Grub is the Arch default.\n\n" \
+ _dia_DIALOG --colors --menu "Which bootloader would you like to use? Grub is the Arch default.\n\n" \
10 65 2 \
"GRUB" "Use the GRUB bootloader (default)" \
"None" "\Zb\Z1Warning\Z0\ZB: you must install your own bootloader!" 2>$ANSWER
@@ -150,6 +150,7 @@ _dia_follow_progress ()
{
title=$1
logfile=$2
+ _dia_DIALOG --title "$1" --no-kill --tailboxbg "$2" 18 70 2>$ANSWER
}
@@ -208,24 +209,3 @@ _cli_follow_progress ()
tail -f $2
}
- ( \
- touch /tmp/setup-mkinitcpio-running
- echo "mkinitcpio progress ..." > /tmp/mkinitcpio.log; \
- echo >> /tmp/mkinitcpio.log; \
- chroot "$TARGET_DIR" /sbin/mkinitcpio -p kernel26 >>/tmp/mkinitcpio.log 2>&1
- echo $? > /tmp/.mkinitcpio-retcode
- echo >> /tmp/mkinitcpio.log
- rm -f /tmp/setup-mkinitcpio-running
- ) &
-
- sleep 2
-
- DIALOG --title "Rebuilding initcpio images ..." \
- --no-kill --tailboxbg "/tmp/mkinitcpio.log" 18 70 2>$ANSWER
- while [ -f /tmp/setup-mkinitcpio-running ]; do
- sleep 1
- done
- kill $(cat $ANSWER)
-
-
-}