#!/bin/sh

for LOCATION in /boot/extlinux /boot/boot/exlinux /extlinux
do
	if [ -e "${LOCATION}" ]
	then
		DIRECTORY="${LOCATION}"
		break
	fi
done

if [ -n ${DIRECTORY} ] && [ -x /usr/bin/extlinux ]
then
	update-extlinux
fi
