Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 01801d93a749e965e4b6320833032f15 > files > 2

net_monitor-0.17-1.mga4.x86_64.rpm

#!/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