| Current File : //sbin/trapstat |
#!/usr/bin/sh
#
# Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
#
# 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/sbin/$cmd
truepathv9=/usr/platform/$platform/sbin/sparcv9/$cmd
if [ -x $truepath ]; then
exec $truepath "$@"
elif [ -x $truepathv9 ]; then
exec $truepathv9 "$@"
else
echo "$cmd: not implemented on $platform" >& 2
fi
fi
exit 255