From 64871b917edc33336e2735f9d442d51800723f08 Mon Sep 17 00:00:00 2001 From: romeo-golf Date: Mon, 13 Feb 2017 18:50:32 +0000 Subject: [PATCH] OGN - Apply s/KERNEL_VERSION/RECEIVER_KERNEL_VERSION/g --- bash/decoders/rtlsdr-ogn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/decoders/rtlsdr-ogn.sh b/bash/decoders/rtlsdr-ogn.sh index c59e3e2..304ca04 100755 --- a/bash/decoders/rtlsdr-ogn.sh +++ b/bash/decoders/rtlsdr-ogn.sh @@ -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