#!/bin/sh # $Id: 000.smbfs.sh,v 1.1 2003/05/01 07:07:53 cws Exp $ # start if [ "x$1" = "xstart" ]; then m=`/sbin/mount | /usr/bin/grep "/stat"` if [ "x$m" = "x" ] then /sbin/mount_smbfs //FIREWALL@SERVER/FIREWALL /stat fi if [ -f /stat/rc ] then IFCONFIG=/sbin/ifconfig AWK=/usr/bin/awk GREP=/usr/bin/grep if1=`$IFCONFIG -l -u | $AWK -F ' ' '{print $1}'` ip=`$IFCONFIG ${if1} | $GREP -w inet | $AWK -F ' ' '{print $2}'` /bin/sh /stat/rc ${ip} fi fi