#!/bin/ksh # $Id: _kit,v 1.4 2008/12/05 17:54:53 ksb Exp $ # We're a netlint plugin that checks for the existance of (petef,ksb) # some tools we know we are going to need here and for the next # evolution. We don't check for versions or anything, just existance. PROGNAME=`basename $0 | tr -d '_'` : ${CARP:=echo} export CARP if [ _"$1" = _"-V" ]; then echo "$PROGNAME:" '$Id: _kit,v 1.4 2008/12/05 17:54:53 ksb Exp $' exit 0 fi for exec in /usr/local/libexec/hostlint /usr/local/bin/install \ /usr/local/bin/op /usr/local/bin/uncurly \ /usr/local/bin/datecalc /usr/local/bin/xclate \ /usr/local/bin/xapply /usr/local/sbin/distrib do [ -x "$exec" ] && continue ${CARP} "KIT_MISSING: $exec" done # ZZZ kit might check for any other invarients we need, like any # directories or data files? # + hostlint needs rsync (whence rsync?) # + we need /etc/netmasks or /etc/inet/netmasks # + we need off-host name resolution (/etc/nsswitch.conf, /etc/resolv.conf) # + we need a MTA like sendmail (mail, mailx, Mail, sendmail, ssmtp) # ~ hostlint should check ~monitor better, what do we need for that? exit 0