#!/bin/sh -e

if [ -f /etc/default/isatapd ]; then
	. /etc/default/isatapd
fi

if [ "$RELOAD_ON_IFUPDOWN" = "yes" ]; then
	if invoke-rc.d --quiet isatapd status > /dev/null; then
		if [ "$RELOAD_ON_IFUPDOWN_DELAY" ]; then
			sleep $RELOAD_ON_IFUPDOWN_DELAY
		fi
		invoke-rc.d isatapd reload
	fi
fi
