http://www.linuxquestions.org/questions/showthread.php?p=4154127&posted=1#post4154127 The ARCH is hard coded in the script, which negates the use of the uname -m case to find the particular arch. Removing ARCH=${ARCH:-i486} Fixes the problem.