[PATCH] hwsim tests: vm: honour EPATH in uevent.sh

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

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

This is useful for testing CRDA since it means you can
use EPATH to redirect the test scripts to a different
crda binary.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 tests/hwsim/vm/uevent.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/hwsim/vm/uevent.sh b/tests/hwsim/vm/uevent.sh
index d52f7fcc1127..76e31e76d3be 100755
--- a/tests/hwsim/vm/uevent.sh
+++ b/tests/hwsim/vm/uevent.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+EPATH=$(sed 's/.*EPATH=\([^ ]*\) .*/\1/' /proc/cmdline)
+PATH=/tmp/bin:$EPATH:$PATH
+
 # assume this was a call for CRDA,
 # if not then it won't find a COUNTRY
 # environment variable and exit
-- 
2.6.2


_______________________________________________
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