aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/netmonitor_up
blob: 4012bf2b39f2f3bd7bfc27083b0fa6ecdcb26ced (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# simple log the time when connection was started
#

if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
	. /etc/sysconfig/network-scripts/ifcfg-$1
	if [ "a$ACCOUNTING" = "ayes" ]; then
		echo $1:UP:$(date +%s) >> /var/log/net_monitor.log
	fi
fi