Remove Gentoo copyright from all files that I know I have written
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Copyright 2007 Roy Marples
|
||||
# All rights reserved
|
||||
|
||||
|
@@ -109,6 +109,24 @@ get_KV() {
|
||||
return $?
|
||||
}
|
||||
|
||||
KV_to_int() {
|
||||
[ -z $1 ] && return 1
|
||||
|
||||
local x=${1%%-*}
|
||||
local KV_MAJOR=${x%%.*}
|
||||
x=${x#*.}
|
||||
local KV_MINOR=${x%%.*}
|
||||
x=${x#*.}
|
||||
local KV_MICRO=${x%%.*}
|
||||
local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
|
||||
|
||||
# We make version 2.2.0 the minimum version we will handle as
|
||||
# a sanity check ... if its less, we fail ...
|
||||
[ "${KV_int}" -lt 131584 ] && return 1
|
||||
|
||||
echo "${KV_int}"
|
||||
}
|
||||
|
||||
. /etc/init.d/functions.sh
|
||||
. "${RC_LIBDIR}"/sh/init-functions.sh
|
||||
. "${RC_LIBDIR}"/sh/rc-functions.sh
|
||||
|
Reference in New Issue
Block a user