OpenVZ Forum


Home » General » Support » faking arch
Re: faking arch [message #3929 is a reply to message #3351] Sat, 24 June 2006 07:11 Go to previous messageGo to previous message
almahdi is currently offline  almahdi
Messages: 2
Registered: February 2006
Junior Member
You may want to replace the uname binary with this simple bash script:

#!/bin/bash

case "$1" in
'-a')
  echo "Linux $HOSTNAME 2.6.13 #1 Sat Sep 3 21:11:20 PDT 2005 i686 unknown unknown GNU/Linux"
  ;;
'-n')
  echo "$HOSTNAME"
  ;;
'-r')
  echo "2.6.13"
  ;;
'-v')
  echo "#1 Sat Sep 3 21:11:20 PDT 2005"
  ;;
'-m')
  echo "i686"
  ;;
'-p')
  echo "unknown"
  ;;
'-i')
  echo "unknown"
  ;;
'-o')
  echo "GNU/Linux"
  ;;
*)
  echo "Linux"
esac


Dont forget to give it executable rights.

You may want to change the kernel version too..
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HN Dropping Packets
Next Topic: OpenVZ
Goto Forum:
  


Current Time: Fri Nov 01 03:02:41 GMT 2024

Total time taken to generate the page: 0.03795 seconds