#!/bin/sh
echo "99avahi arg=$1" > /dev/ttyS0
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1

case "$1" in

	leasefail)
		/usr/sbin/avahi-autoipd --no-drop-root -wD $interface 2> /dev/null
		;;
esac
