#!/bin/sh
#
# dcp2000/kernel package pre installation script
#

UNAME="3.10.27"
if test -e /boot/vmlinuz ; then
	vmlinuz="/boot/vmlinuz"
else
	vmlinuz="/boot/vmlinuz-${UNAME}"
fi
INSTALL=$( /usr/bin/sha1sum ${vmlinuz} | cut -d " " -f 1 )
CURRENT=$( /usr/bin/sha1sum ./rootfs/boot/vmlinuz-${UNAME} | cut -d " " -f 1 )

if [ "${CURRENT}" = "${INSTALL}" ]; then
	# No need to install this package	
	exit 1
fi

exit 0
