From 963baa36d4063bd9ccd1c537bd51d7059d26a18b Mon Sep 17 00:00:00 2001 From: morrownr Date: Thu, 15 Dec 2022 08:30:39 -0600 Subject: [PATCH] set the PATH --- install-driver.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-driver.sh b/install-driver.sh index 809b4a9..375beb3 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -37,6 +37,11 @@ then exit 1 fi +# ensure /usr/sbin is in the PATH so iw can be found +if ! echo "$PATH" | grep -qw sbin; then + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +fi + # check to ensure gcc is installed if ! command -v gcc >/dev/null 2>&1 then