wok-stable diff syslinux/stuff/tools/keytab-lilo.pl.u @ rev 8399

linux,syslinux: no more awk in shell tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 16:34:18 2011 +0100 (2011-02-05)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/syslinux/stuff/tools/keytab-lilo.pl.u	Sat Feb 05 16:34:18 2011 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +--- syslinux-3.63/keytab-lilo.pl
     1.5 ++++ syslinux-3.63/keytab-lilo.pl
     1.6 +@@ -66,5 +66,5 @@
     1.7 + 	chop;
     1.8 +-	if (/^u_short\s+(\S+)_map\[\S+\]\s+=\s+{\s*$/) {
     1.9 ++	if (/^(static\s+)?u_short\s+(\S+)_map\[\S+\]\s+=\s+{\s*$/) {
    1.10 + 	    die "active at beginning of map" if defined $current;
    1.11 +-	    $current = $pfx.":".$1;
    1.12 ++	    $current = $pfx.":".$2;
    1.13 + 	    next;