Browse Source

Clifford Wolf:

hotfixes for 'uname -r' is not the distribution kernel version


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4642 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Clifford Wolf 20 years ago
parent
commit
abdb843c06
3 changed files with 29 additions and 0 deletions
  1. +5
    -0
      package/avm/ipw2100/ipw2100.conf
  2. +19
    -0
      package/avm/tpctl/tpctl.conf
  3. +5
    -0
      package/stf/gatos-km/gatos-km.conf

+ 5
- 0
package/avm/ipw2100/ipw2100.conf

@ -20,6 +20,10 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
. $base/package/base/linux/kernelversion.sh
var_append makeinstopt " " "KVER=$kernelversion"
var_append makeopt " " "KVER=$kernelversion"
ipw2100_pm() {
driverfile=$base/download/mirror/h/hostap-driver-0.1.3.tar.bz2
tar -x --use-compress-program=bunzip2 -f $driverfile
@ -32,3 +36,4 @@ ipw2100_pm() {
hook_add premake 3 "ipw2100_pm"
var_append makeopt " " "CONFIG_IPW2100_LEGACY_FW_LOAD=y"

+ 19
- 0
package/avm/tpctl/tpctl.conf

@ -0,0 +1,19 @@
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

+ 5
- 0
package/stf/gatos-km/gatos-km.conf

@ -0,0 +1,5 @@
. $base/package/base/linux/kernelversion.sh
var_append makeinstopt " " "KVER=$kernelversion"
var_append makeopt " " "KVER=$kernelversion"

Loading…
Cancel
Save