Fix KV_to_int working with funky kernel versions, #177197.

This commit is contained in:
Roy Marples 2007-05-05 20:27:50 +00:00
parent 35487d9313
commit 2ad5c3eb33
2 changed files with 10 additions and 5 deletions

View File

@ -1,10 +1,14 @@
# ChangeLog for Gentoo System Intialization ("rc") scripts # ChangeLog for Gentoo System Intialization ("rc") scripts
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
* baselayout-2.0.0_alpha2 (05 May 2007)
05 May 2007; Roy Marples <uberlord@gentoo.org>: 05 May 2007; Roy Marples <uberlord@gentoo.org>:
Fix KV_to_int working with funky kernel versions, #177197.
* baselayout-2.0.0_alpha2 (04 May 2007)
04 May 2007; Roy Marples <uberlord@gentoo.org>:
Fix unicode keymaps, #173528. Fix unicode keymaps, #173528.
Some fonts show the currency symbol instead of the Euro when doing Some fonts show the currency symbol instead of the Euro when doing
AltGr-E, so we provide an easy setting to fix this. AltGr-E, so we provide an easy setting to fix this.

View File

@ -104,11 +104,12 @@ uniqify() {
KV_to_int() { KV_to_int() {
[ -z $1 ] && return 1 [ -z $1 ] && return 1
local KV_MAJOR=${1%%.*} local x=${1%%-*}
local x=${1#*.} local KV_MAJOR=${x%%.*}
x=${x#*.}
local KV_MINOR=${x%%.*} local KV_MINOR=${x%%.*}
x=${1#*.*.} x=${1#*.*.}
local KV_MICRO=${x%%-*} local KV_MICRO=${x%%.*}
local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} )) local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
# We make version 2.2.0 the minimum version we will handle as # We make version 2.2.0 the minimum version we will handle as