From fa14259635b6af0029e0d26e6bfb5a2acfb694b5 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 4 Apr 2010 15:24:57 +0200 Subject: only ask libui to do debugging when we want it --- src/core/libs/lib-ui.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 9c4886f..5dc6e3d 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -12,7 +12,11 @@ ui_init () else logs=$LOG fi - libui-sh-init ${var_UI_TYPE:-cli} "$RUNTIME_DIR" "$logs" "${cats[@]}" + if [ "$DEBUG" = '1' ]; then + libui-sh-init ${var_UI_TYPE:-cli} "$RUNTIME_DIR" "$logs" "${cats[@]}" + else + libui-sh-init ${var_UI_TYPE:-cli} "$RUNTIME_DIR" "$logs" + fi # 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