#!/bin/bash # # The OCD onslaught continues with uname -p and uname -i now returning # the string "unknown" instead of the architecture. Satisfying their # OCD will only require thousands of people to modify decades old # shell scripts, so obviously it is a good idea to change this. # # This script checks to see if uname is broken, and if it is, moves # it to uname.real and copies in the /zooty/uname/uname shell # script which replaces a single -p or -i option with -m. (Easier # than a general solution and should be the 99.999% case). # unk=`/usr/bin/uname -p` gud=`/usr/bin/uname -m` if [ "$unk" != "$gud" ] then rm -f /usr/bin/uname.real mv /usr/bin/uname /usr/bin/uname.real cp /zooty/uname/uname /usr/bin/uname chmod 755 /usr/bin/uname fi