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

. ${PKGLIB_SH}

UNAME="3.10.27"
INSTALL=$( /usr/bin/sha1sum /boot/vmlinuz-${UNAME} | cut -d " " -f 1 )
CURRENT=$( /usr/bin/sha1sum ./rootfs/boot/vmlinuz-${UNAME} | cut -d " " -f 1 )

# remove pciehp module if exists (ACE #4068)
safe_delete_file /lib/modules/${UNAME}/kernel/drivers/pci/hotplug/pciehp.ko

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

exit 0
