#!/bin/sh
if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
	. /etc/sysconfig/network-scripts/ifcfg-$1
	if [ "a$ACCOUNTING" = "ayes" ]; then
	echo
		# remove $1 from database
		#/usr/bin/vnstat --remove --force -i $1 > /dev/null || :
		# update daemon
		# This stall the reboot
		# service vnstat force-reload
	fi
fi
