#!/bin/sh openpkgdir=/cw me="$0" case "$me" in /* ) ;; */* ) me="`pwd`/$me" ;; * ) for p in `echo $PATH | sed -e 's/:/ /g'`; do if [ -x "$p/$me" ]; then me="$p/$me" break fi done ;; esac rootdir=`echo $me | sed -e 's;/[^/]*$;;' | sed -e 's;//*;/;g'` $openpkgdir/bin/perl $rootdir/snmpdx \ -M $rootdir/snmpdx.mib:$openpkgdir/share/snmp/mibs \ -P $rootdir/snmpdx.d \ -l /tmp/snmpdx.log