/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.1 2004/11/24 16:36:38 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.2 2004/11/25 19:47:18 johnm Exp $
4# 4#
5# This eclass provides functions for querying the installed kernel 5# This eclass provides functions for querying the installed kernel
6# source version, selected kernel options etc. 6# source version, selected kernel options etc.
7# 7#
8 8
10INHERITED="$INHERITED $ECLASS" 10INHERITED="$INHERITED $ECLASS"
11 11
12# Overwritable environment Var's 12# Overwritable environment Var's
13# --------------------------------------- 13# ---------------------------------------
14KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}" 14KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}"
15
16 15
17 16
18# File Functions 17# File Functions
19# --------------------------------------- 18# ---------------------------------------
20 19
65# kernel_is 2 4 returns false 64# kernel_is 2 4 returns false
66# kernel_is 2 returns true 65# kernel_is 2 returns true
67# kernel_is 2 6 returns true 66# kernel_is 2 6 returns true
68# kernel_is 2 6 8 returns false 67# kernel_is 2 6 8 returns false
69# kernel_is 2 6 9 returns true 68# kernel_is 2 6 9 returns true
70#
71# got the jist yet? 69# got the jist yet?
72 70
73kernel_is() { 71kernel_is() {
74 # if we haven't determined the version yet, we need too. 72 # if we haven't determined the version yet, we need too.
75 get_version; 73 get_version;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20