1#!/bin/sh 2# 3# 4 5# If there is a global system configuration file, suck it in. 6# 7if [ -r /etc/defaults/periodic.conf ] 8then 9 . /etc/defaults/periodic.conf 10 source_periodic_confs 11fi 12 13case "$daily_status_network_enable" in 14 [Yy][Ee][Ss]) 15 echo "" 16 echo "Network interface status:" 17 18 flags="${daily_status_network_netstat_flags}" 19 case "$daily_status_network_usedns" in 20 [Yy][Ee][Ss]) 21 ;; 22 *) 23 flags="${flags} -n";; 24 esac 25 netstat -i ${flags} && rc=0 || rc=3;; 26 27 *) rc=0;; 28esac 29 30exit $rc 31