comparison profiles/xSMALL_/files/etc/periodic/daily/420.status-network @ 209:b7812d60bbcd

More small than SMALL_ profile :)
author ray@terran.dlink.ua
date Sat, 15 Oct 2011 02:31:07 +0300
parents
children
comparison
equal deleted inserted replaced
208:ad5a3376d2a6 209:b7812d60bbcd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # If there is a global system configuration file, suck it in.
7 #
8 if [ -r /etc/defaults/periodic.conf ]
9 then
10 . /etc/defaults/periodic.conf
11 source_periodic_confs
12 fi
13
14 case "$daily_status_network_enable" in
15 [Yy][Ee][Ss])
16 echo ""
17 echo "Network interface status:"
18
19 case "$daily_status_network_usedns" in
20 [Yy][Ee][Ss])
21 netstat -i && rc=0 || rc=3;;
22 *)
23 netstat -in && rc=0 || rc=3;;
24 esac;;
25
26 *) rc=0;;
27 esac
28
29 exit $rc