I want replace 2.6.15-25-server with 2.6.17 ?
$uname -r
2.6.15-25-server
1) mv /bin/uname /bin/uname.orig
2) put the following in the new /bin/uname:
#!/bin/sh
echo Uname (New Version)
/bin/uname.orig
I want replace 2.6.15-25-server with 2.6.17 ?
$uname -r
2.6.15-25-server
1) mv /bin/uname /bin/uname.orig
2) put the following in the new /bin/uname:
#!/bin/sh
echo Uname (New Version)
/bin/uname.orig
pop_black, uname -r prints the release level of your operating system. If you want to change the output of that command, you should be upgrading your system. Just replacing the uname command does not achieve anything.
I want use fake uname
anyone can guide?
You basicly provided the answer in your first post. Replace the uname command with your own script.