#!/bin/bash
output=$(lspci |grep VGA)

if ( echo ${output} | grep -Eq "0201|GP201" ) then
	setenforce 0
	while true
	do
		if [ -e /dev/ljmcore ]; then
			echo "/usr/lib64/ljm"         > /etc/ld.so.conf.d/10-ljmgp.conf
			ldconfig
			exit 0
		fi
		sleep 1
	done
else
	rm /etc/ld.so.conf.d/10-ljmgp.conf
	ldconfig
fi

exit 0
