#!/bin/sh
if [ "$1" != "" ] && [ -f "$1" ]; then
	fwupdater -v $1
	if [ $? -eq 0 ]; then
		sh /etc/events/FWUPDATER.sh
	else
		echo "The file isn't a valid firmware!"
	fi
else
	echo "The file doesn't exist!"
fi
exit 0