#!/bin/bash openssl md5 /boot/vmlinuz-2.6.24-23-server > current_hash hash_cmp= cmp current_hash /boot/kernel_hash if [ "$hash_cmp" == "" ] then echo check passed else echo kernel has beeen modified fi rm current_hash