OGN - Apply s/KERNEL_VERSION/RECEIVER_KERNEL_VERSION/g

pull/289/head
romeo-golf 2017-02-13 18:50:32 +00:00
rodzic e4c49b3dad
commit 64871b917e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -338,9 +338,9 @@ if [[ ! -c "gpu_dev" ]] ; then
# The mknod major_version number varies with kernel version.
echo -e "\e[94m Getting the version of the kernel currently running...\e[97m"
KERNEL=`uname -r`
KERNEL_VERSION=`echo ${KERNEL} | cut -d \. -f 1`.`echo ${KERNEL} | cut -d \. -f 2`
RECEIVER_KERNEL_VERSION=`echo ${KERNEL} | cut -d \. -f 1`.`echo ${KERNEL} | cut -d \. -f 2`
# Check if the currently running kernel is version 4.1 or higher.
if [[ "${KERNEL_VERSION}" < 4.1 ]] ; then
if [[ "${RECEIVER_KERNEL_VERSION}" < 4.1 ]] ; then
# Kernel is older than version 4.1.
echo -e "\e[94m Executing mknod for older kernels...\e[97m"
sudo mknod gpu_dev c 100 0