From 5c604193e05f78179a4e1f2757affb9f279e0578 Mon Sep 17 00:00:00 2001 From: keoma Date: Sun, 7 Apr 2019 23:47:20 +0200 Subject: [PATCH] adding iw full path --- conf/iw_devices | 2 +- conf/iw_multissid | 4 ++-- conf/iw_ssids | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/iw_devices b/conf/iw_devices index ffb2c17..1f4dff6 100644 --- a/conf/iw_devices +++ b/conf/iw_devices @@ -17,4 +17,4 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -echo -n $(iw dev | grep Interface | grep -v 'mon\.' | grep -v hotspot | awk '{ print $NF }') | tr ' ' \| +echo -n $(/sbin/iw dev | grep Interface | grep -v 'mon\.' | grep -v hotspot | awk '{ print $NF }') | tr ' ' \| diff --git a/conf/iw_multissid b/conf/iw_multissid index d3f9b1a..66ab148 100644 --- a/conf/iw_multissid +++ b/conf/iw_multissid @@ -17,8 +17,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -phy=$(iw "${1}" info | grep wiphy | awk '{ print $NF }') -multissid=$(iw "phy${phy}" info | grep -A1 'valid interface combinations' | tail -n1 | sed 's/.*{.*AP.*}\s<=\s\(.*\),.*/\1/') +phy=$(/sbin/iw "${1}" info | grep wiphy | awk '{ print $NF }') +multissid=$(/sbin/iw "phy${phy}" info | grep -A1 'valid interface combinations' | tail -n1 | sed 's/.*{.*AP.*}\s<=\s\(.*\),.*/\1/') if [ -z "${multissid}" ]; then echo 1 diff --git a/conf/iw_ssids b/conf/iw_ssids index 5c1c9d3..f4c8d1e 100644 --- a/conf/iw_ssids +++ b/conf/iw_ssids @@ -17,4 +17,4 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -echo -n hotspot0 $(iw dev | grep Interface | grep hotspot | awk '{ print $NF }') | tr ' ' \| +echo -n hotspot0 $(/sbin/iw dev | grep Interface | grep hotspot | awk '{ print $NF }') | tr ' ' \|