annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
209
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
1 #!/bin/sh
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
2 #
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
3 # $FreeBSD$
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
4 #
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
5
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
6 # If there is a global system configuration file, suck it in.
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
7 #
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
8 if [ -r /etc/defaults/periodic.conf ]
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
9 then
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
10 . /etc/defaults/periodic.conf
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
11 source_periodic_confs
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
12 fi
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
13
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
14 case "$daily_status_network_enable" in
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
15 [Yy][Ee][Ss])
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
16 echo ""
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
17 echo "Network interface status:"
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
18
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
19 case "$daily_status_network_usedns" in
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
20 [Yy][Ee][Ss])
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
21 netstat -i && rc=0 || rc=3;;
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
22 *)
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
23 netstat -in && rc=0 || rc=3;;
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
24 esac;;
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
25
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
26 *) rc=0;;
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
27 esac
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
28
b7812d60bbcd More small than SMALL_ profile :)
ray@terran.dlink.ua
parents:
diff changeset
29 exit $rc