#!/bin/sh
#
VERSION=2.0.7a
#
if [ -x /usr/local/bin/wish8.4 ]; then
    WISH=/usr/local/bin/wish8.4
elif [ -x /usr/local/bin/wish8.3 ]; then
    WISH=/usr/local/bin/wish8.3
elif [ -x /usr/local/bin/wish ]; then
    WISH=/usr/local/bin/wish
elif [ -x /usr/bin/wish ]; then
    WISH=/usr/bin/wish
else
    echo "Can't find 'wish' executable!"
fi
#
if [ -r ./TkNetmon.tcl ]; then
    exec $WISH  ./TkNetmon.tcl $1  &
else
    exec $WISH /usr/local/lib/TkNetmon-${VERSION}/TkNetmon.tcl $1  &
fi
