[svlug] Solaris - Changing the version number reported by uname -r

Seth David Schoen schoen at loyalty.org
Sat Nov 3 18:50:02 PST 2001

Cameron Palmer writes:

> If you run uname -r on solaris 8 it returns 5.8. Anyone know what needs
> to be altered to make it return 5.7? I need to install a program that
> checks revision number and should run fine but cam out before 8 was
> released.


if [ "$@" = "-r" ]
	echo "5.7"
	exec real-uname "$@"

Seth David Schoen <schoen at loyalty.org> | Its really terrible when FBI arrested
Temp.  http://www.loyalty.org/~schoen/ | hacker, who visited USA with peacefull
down:  http://www.loyalty.org/   (CAF) | mission -- to share his knowledge with
     http://www.freesklyarov.org/      | american nation.  (Ilya V. Vasilyev)

More information about the svlug mailing list