From 252473eb0bfd1aee56709512f42cc8dcd281a311 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Wed, 24 Mar 2010 23:46:26 +0100 Subject: use the latest libui-sh and maximize the features for initialising it (thats needed now as libui no longer incorrectly directly accessess aif variables) --- src/core/libs/lib-ui.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 0d2da20..fcde53d 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -1,12 +1,18 @@ #!/bin/bash # Note that $var_UI_TYPE may not be set here. especially if being loaded in the "early bootstrap" phase -source /usr/lib/lib-ui.sh +source /usr/lib/libui.sh # mandatory to call me when you want to use me. call me again after setting $var_UI_TYPE ui_init () { - lib-ui-sh-init $RUNTIME_DIR $var_UI_TYPE + cats=(MAIN PROCEDURE UI UI-INTERACTIVE FS MISC NETWORK PACMAN SOFTWARE) + if [ "$LOG_TO_FILE" ]; then + logs=($LOG $LOGFILE) + else + logs=$LOG + fi + libui-sh-init $var_UI_TYPE $RUNTIME_DIR "${logs[*]}" "${cats[*]}" # get keymap/font (maybe configured by aif allready in another process or even in another shell) # otherwise, take default keymap and consolefont as configured in /etc/rc.conf. can be overridden -- cgit v1.2.3-54-g00ecf