diff --git a/src/CMake/config/postinst.in b/src/CMake/config/postinst.in index bd8130edd12..f8b4587242d 100755 --- a/src/CMake/config/postinst.in +++ b/src/CMake/config/postinst.in @@ -80,12 +80,12 @@ done rmmodules DRACUT_CONF_PATH=/etc/dracut.conf.d -if [ -e $DRACUT_CONF_PATH ] && [ $alveo == 1]; then +if [ -e $DRACUT_CONF_PATH ] && [ $alveo -eq 1 ]; then install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/userpf/xocl.dracut.conf $DRACUT_CONF_PATH install -m 644 /usr/src/xrt-@XRT_VERSION_STRING@/driver/xocl/mgmtpf/xclmgmt.dracut.conf $DRACUT_CONF_PATH fi -if [ $alveo == 0]; then +if [ $alveo -eq 0 ]; then echo "Skipping XRT Alveo driver install" exit 0 fi