#!/bin/sh
#ident  "@(#)cputrack 1.2	03/01/09 SMI"
#
# Execute the platform-dependent version of a program, if it exists.
#

cmd=`basename $0`
platform=`/usr/bin/uname -i 2> /dev/null`

if [ $? -ne 0 ]
then
        echo "$cmd: could not determine platform" >& 2
else
        truepath=/usr/platform/$platform/bin/$cmd

        if [ -x $truepath ]; then
                exec $truepath $@
        else
                echo "$cmd: not implemented on $platform" >& 2
        fi
fi

exit 255
