mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
353 B

  1. uname_inst() {
  2. mkdir -p $builddir/bin
  3. cat << EOT > $builddir/bin/uname
  4. #!/bin/bash
  5. if [ "\$*" = "-r" ]; then
  6. echo $kernelversion
  7. else
  8. exec $( type -p uname )
  9. fi
  10. EOT
  11. chmod +x $builddir/bin/uname
  12. ln -s /bin/true $builddir/bin/depmod
  13. var_insert PATH ":" $builddir/bin
  14. }
  15. hook_add prepare 8 uname_inst
  16. . $base/package/base/linux/kernelversion.sh