How to create a uname wrapper to return a i686 instead of x86_64
Last Modified: May 28, 2011, 2:14 pm
If you're running a 32-bit vps on a 64-bit master OS, then the "uname -m" may return a 64-bit result even though you're running a 32-bit system. You can create a wrapper for uname to return the value you want:
mv uname uname.orig
in the uname wrapper script, enter the code:
if [ $# -eq 1 ] && [ "$1" = "-m" ]; then
chmod 755 uname
to chmod the script to make it executable, and to test the output.