#!/bin/bash

# Saving the supported kernel list string in package.sh and using in preinst
KERNEL_LIST=6.6.0
KERNEL_VERSION=`uname -r | awk -F '-' '{print $1}'`

for k in ${KERNEL_LIST}; do
    # we can't execute the SIETIUM-VERSION-GEN script, so skip the strict check
    if [ "$k" = "$KERNEL_VERSION"  ]; then
        exit 0
    fi
done

echo "[Sietium Error] The deb can not match your system!"
set -e
exit 1
