#! /bin/sh
#
# ntp - rerun ntp in response to interface change
#
# Jan Blunck <jblunck@suse.de>
# Michael Skibbe <mskibbe@suse.de>

case "$2" in
    up)
	if /sbin/chkconfig --check ntp; then
	    /etc/init.d/ntp restart
	fi
	;;
    down)
	if /sbin/chkconfig --check ntp; then
		/etc/init.d/ntp restart
	fi
	;;
    *)
	exit 0
	;;
esac
