diff options
author | Olivier Korn <olivier.korn@reglisse.net> | 2009-02-10 11:23:08 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-02-10 09:35:58 -0800 |
commit | 09f2a2a5a328259db37d56286001a7ee67a0480f (patch) | |
tree | de624195b946a922ec14f3ef253c22c7872fb552 | |
parent | e563276370ebbff8d82f6c1a1050b2d02e491af7 (diff) | |
download | syslinux-elf-09f2a2a5a328259db37d56286001a7ee67a0480f.tar.gz syslinux-elf-09f2a2a5a328259db37d56286001a7ee67a0480f.tar.xz syslinux-elf-09f2a2a5a328259db37d56286001a7ee67a0480f.zip |
Fix minor errors in keytab-lilo
H. Peter Anvin wrote:
> Thanks for the warning. I have updated keytab-lilo in the git tree with
> keytab-lilo.pl from LILO 22.8.
Thank you H. Peter. I just checked it and the new version doesn't work
"out of the box". It says...
syntax error at keytab-lilo line 4, near "eval "
Execution of keytab-lilo aborted due to compilation errors.
Furthermore, after correcting lines 3 and 4 (which are responsible of
the above error), keyboard maps can't be found (by loadkeys utility)
because of an added bad extension (.map instead of .kmap).
Attached is a patch I wrote in order to make it fully work (apply it
against the version of keytab-lilo which is now in the git tree).
-rwxr-xr-x | utils/keytab-lilo | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/keytab-lilo b/utils/keytab-lilo index fd58e004..9e341605 100755 --- a/utils/keytab-lilo +++ b/utils/keytab-lilo @@ -1,17 +1,17 @@ #!/usr/bin/perl -eval { use bytes; } -eval { binmode STDOUT; } +eval { use bytes; }; +eval { binmode STDOUT; }; $DEFAULT_MAP = "us"; -$DEFAULT_EXT = ".map"; +$DEFAULT_EXT = ".kmap"; sub usage { print STDERR "usage: $0 [ -p old_code=new_code ] ...\n". - (" "x(8+length $0))."[path]default_layout[.map] ] ". - "[path]kbd_layout[.map]\n"; + (" "x(8+length $0))."[path]default_layout[.kmap] ] ". + "[path]kbd_layout[.kmap]\n"; exit 1; } |