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 ]