Changeset 2999 for branches/3.0/mindi


Ignore:
Timestamp:
Apr 20, 2012, 1:57:29 AM (7 years ago)
Author:
bruno
Message:
  • Fix #614 to add correct keyboard support on SLES 10, whose keyboard file has a different syntax wrt RHEL/Mandriva/Mageia
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r2995 r2999  
    432432    fi
    433433    LogFile "INFO: keyfile=$keyfile"
    434     locale=`grep -F KEYTABLE "$keyfile" | tr -d '"' |cut -d'=' -f2`
     434    # For SLES we need to remove the .map.gz extension Cf #614
     435    locale=`grep -F KEYTABLE "$keyfile" | grep -v '^#' | tr -d '"' |cut -d'=' -f2 | sed 's/.map.gz$//'`
    435436    [ ! "$locale" ] && locale=`grep '.map$' "$keyfile" | sed 's/^.* //'`        # Slackware
    436     [ ! "$locale" ] && locale=`grep -E '^KEYMAP=' "$keyfile" | tr -d '"' |cut -d'=' -f2`        # Gentoo & ArchLinux
     437    [ ! "$locale" ] && locale=`grep -E '^KEYMAP=' "$keyfile" | grep -v '^#' | tr -d '"' |cut -d'=' -f2`     # Gentoo & ArchLinux
    437438    LogFile "INFO: locale=$locale"
    438439    #
Note: See TracChangeset for help on using the changeset viewer.