[PATCH] tests: Fix Permission denied on Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Th wpa_cli and hostapd_cli looks fails on Fedora without sudo.

Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx>
---
 tests/hwsim/start.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index fe46212..4d2d055 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -196,7 +196,7 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
 done
 for i in 0 1 2; do
     for j in `seq 1 10`; do
-	if $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then
+	if sudo $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then
 	    break
 	fi
 	if [ $j = "10" ]; then
@@ -208,7 +208,7 @@ for i in 0 1 2; do
 done
 
 for j in `seq 1 10`; do
-    if $WPACLI -g /var/run/hostapd-global ping | grep -q PONG; then
+    if sudo $WPACLI -g /var/run/hostapd-global ping | grep -q PONG; then
 	break
     fi
     if [ $j = "10" ]; then
@@ -219,7 +219,7 @@ for j in `seq 1 10`; do
 done
 
 for j in `seq 1 10`; do
-    if $HAPDCLI -i as ping | grep -q PONG; then
+    if sudo $HAPDCLI -i as ping | grep -q PONG; then
 	break
     fi
     if [ $j = "10" ]; then
-- 
2.7.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux