package log; # $Id: log.pm 215411 2007-04-25 12:26:16Z pixel $ use diagnostics; use strict; use c; my ($LOG, $LOG2); sub l { if ($::testing) { print STDERR @_, "\n"; } elsif ($::isInstall) { if (!$LOG) { open $LOG, '>>', '/tmp/ddebug.log'; open $LOG2, '>', '/dev/tty3' if !$::local_install; select((select($LOG), $| = 1)[0]); select((select($LOG2), $| = 1)[0]) if !$::local_install; } print $LOG "* ", @_, "\n"; print $LOG2 "* ", @_, "\n" if $LOG2; } elsif ($::isStandalone) { #- openlog was done in standalone.pm c::syslog(c::LOG_WARNING(), join("", @_)); } else { print STDERR @_, "\n"; } } sub openLog { my ($file) = @_; open $LOG, "> $file"; select((select($LOG), $| = 1)[0]); } sub closeLog() { if ($LOG) { close $LOG; close $LOG2 if $LOG2; } elsif ($::isStandalone) { c::closelog(); } } sub explanations { if ($::isStandalone) { c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_"); } else { l(@_); } } 1; 20c953629026cd4'/> Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-04 22:12:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-04 22:12:37 +0000
commitea53889397cdeccecf3a61b9c20c953629026cd4 (patch)
tree98241aeddb6c0cbae0496da7004f46875fd40a04 /make_boot_img
parent7c6d4b3c60d8ac02d3d1bd3f06f034002267ba8a (diff)
downloaddrakx-backup-do-not-use-ea53889397cdeccecf3a61b9c20c953629026cd4.tar
drakx-backup-do-not-use-ea53889397cdeccecf3a61b9c20c953629026cd4.tar.gz
drakx-backup-do-not-use-ea53889397cdeccecf3a61b9c20c953629026cd4.tar.bz2
drakx-backup-do-not-use-ea53889397cdeccecf3a61b9c20c953629026cd4.tar.xz
drakx-backup-do-not-use-ea53889397cdeccecf3a61b9c20c953629026cd4.zip
add XkbCompat "group_led" for all keyboards where a group layout switching is used