From 523b6ac4f37cf220b8b94850c04e57b0713dc66c Mon Sep 17 00:00:00 2001 From: morrownr Date: Sat, 19 Nov 2022 22:57:12 -0600 Subject: [PATCH] rfkill not installed issue --- README.md | 2 +- install-driver.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96e7f5b..a895db5 100644 --- a/README.md +++ b/README.md @@ -240,7 +240,7 @@ sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git - Option for Debian, Kali, and Raspberry Pi Desktop (x86) ``` -sudo apt install -y linux-headers-$(uname -r) build-essential bc dkms git libelf-dev +sudo apt install -y linux-headers-$(uname -r) build-essential bc dkms git libelf-dev rfkill ``` - Option for Ubuntu (all official flavors) and the numerous Ubuntu based distros diff --git a/install-driver.sh b/install-driver.sh index da6c6cc..102646f 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -176,7 +176,12 @@ else fi # unblock wifi -rfkill unblock wlan +if command -v rfkill >/dev/null 2>&1 +then + rfkill unblock wlan +else + echo "Unable to run $ rfkill unblock wlan" +fi # if NoPrompt is not used, ask user some questions to complete installation if [ $NO_PROMPT -ne 1 ]