summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-05 12:32:12 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-05 12:32:12 +0000
commitc183f5b8ba07670b24c47e5f98d4925250b98063 (patch)
tree9dfa3f0befcb6973e68c705beb0ab185e2bb7912 /perl-install/keyboard.pm
parent578dc4f6c9e3f302ad839fa011bdf4bf85a5ef9b (diff)
downloaddrakx-backup-do-not-use-c183f5b8ba07670b24c47e5f98d4925250b98063.tar
drakx-backup-do-not-use-c183f5b8ba07670b24c47e5f98d4925250b98063.tar.gz
drakx-backup-do-not-use-c183f5b8ba07670b24c47e5f98d4925250b98063.tar.bz2
drakx-backup-do-not-use-c183f5b8ba07670b24c47e5f98d4925250b98063.tar.xz
drakx-backup-do-not-use-c183f5b8ba07670b24c47e5f98d4925250b98063.zip
added DISABLE_WINDOWS_KEY in /etc/sysconfig/keyboard if a laptop is detected.
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r--perl-install/keyboard.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index 9065dddf7..44bc7aabf 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -8,6 +8,7 @@ use strict;
#- misc imports
#-######################################################################################
use common qw(:common :system :file);
+use detect_devices;
use run_program;
use commands;
use log;
@@ -333,6 +334,7 @@ sub write {
setVarsInSh("$prefix/etc/sysconfig/keyboard", { KEYTABLE => keyboard2kmap($keyboard),
KBCHARSET => $charset,
REMOVE_MOD_META_L => "",
+ DISABLE_WINDOWS_KEY => detect_devices::isLaptop() ? "yes" : "",
BACKSPACE => $isNotDelete ? "BackSpace" : "Delete" });
run_program::rooted($prefix, "dumpkeys > /etc/sysconfig/console/default.kmap") or log::l("dumpkeys failed");
}