# This is not a shell script; it provides functions to network scripts # that source it. source_config () { DEVNAME=`basename $CONFIG | sed 's/^ifcfg-//g'` if basename $CONFIG | grep -q '[^g]-' ; then PARENTCONFIG=`echo $CONFIG | sed 's/-[^-]*$//g'` PARENTDEVNAME=`echo $PARENTCONFIG | sed 's/^ifcfg-//g'` [ -f $PARENTCONFIG ] || { echo "Missing config file $PARENTCONFIG." >&2 exit 1 } . $PARENTCONFIG fi . $CONFIG } do_netreport () { # Notify programs that have requested notification ( cd /var/run/netreport || exit for i in * ; do [ -f $i ] && \ kill -SIGIO $i >/dev/null 2>&1 || \ rm -f $i >/dev/null 2>&1 done ) }