Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 19 years ago
parent
commit
81dea6fc49
6 changed files with 39 additions and 41 deletions
  1. +1
    -16
      package/avm/tpctl/tpctl.conf
  2. +10
    -0
      package/base/linux/kernelversion.sh
  3. +25
    -0
      package/clifford/drbd7/drbd7.conf
  4. +1
    -8
      package/fake/lirc/lirc.conf
  5. +1
    -9
      package/hannes/ipw2200/ipw2200.conf
  6. +1
    -8
      package/stf/gatos-km/gatos-km.conf

+ 1
- 16
package/avm/tpctl/tpctl.conf

@ -21,21 +21,6 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
uname_inst() {
mkdir -p $builddir/bin
cat << EOT > $builddir/bin/uname
#!/bin/bash
if [ "\$*" = "-r" ]; then
echo $kernelversion
else
exec $( type -p uname ) "\$@"
fi
EOT
chmod +x $builddir/bin/uname
ln -s /bin/true $builddir/bin/depmod
var_insert PATH ":" $builddir/bin
}
hook_add prepare 8 uname_inst
. $base/package/base/linux/kernelversion.sh
add_uname_wrapper

+ 10
- 0
package/base/linux/kernelversion.sh

@ -19,5 +19,15 @@ getkernelversion() {
fi
}
add_uname_wrapper() {
add_wrapper uname <<- EOT
if [ "\$*" = "-r" ]; then
echo "$kernelversion"
exit 0
fi
exec \$orig "\$@"
EOT
}
kernelversion="$( getkernelversion )"

+ 25
- 0
package/clifford/drbd7/drbd7.conf

@ -0,0 +1,25 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/clifford/drbd7/drbd7.conf
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
add_uname_wrapper

+ 1
- 8
package/fake/lirc/lirc.conf

@ -21,14 +21,7 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
add_wrapper uname <<- EOT
if [ "\$*" = "-r" ]; then
echo "$kernelversion"
exit 0
fi
exec \$orig "\$@"
EOT
add_uname_wrapper
# at least the serial driver...
var_append confopt ' ' "--with-driver=serial --enable-sandboxed"

+ 1
- 9
package/hannes/ipw2200/ipw2200.conf

@ -21,15 +21,7 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
add_wrapper uname <<- EOT
if [ "\$*" = "-r" ]; then
echo "$kernelversion"
exit 0
fi
exec \$orig "\$@"
EOT
add_uname_wrapper
ipw2200_pm ()
{

+ 1
- 8
package/stf/gatos-km/gatos-km.conf

@ -21,14 +21,7 @@
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
add_wrapper uname <<- EOT
if [ "\$*" = "-r" ]; then
echo "$kernelversion"
exit 0
fi
exec \$orig "\$@"
EOT
add_uname_wrapper
var_append makeinstopt " " "KVER=$kernelversion"
var_append makeopt " " "KVER=$kernelversion"

Loading…
Cancel
Save