]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim tests: vm: read a config file from $HOME
authorJohannes Berg <johannes.berg@intel.com>
Tue, 14 Jan 2014 09:38:33 +0000 (10:38 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 14 Jan 2014 15:08:04 +0000 (17:08 +0200)
The vm-config in the subdirectory is less useful as it
will get removed by "git clean" and similar, so read a
config file from ~/.wpas-vm-config in addition.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/vm/vm-run.sh

index a4924edace4248afbe15110e0238f647ad13c5eb..6feaaaa5cbeebfd44490f1b4a917dbe4cade015b 100755 (executable)
@@ -29,6 +29,7 @@ KVMOUT=ttyS1
 CHANNELS=1
 
 test -f vm-config && . vm-config
+test -f ~/.wpas-vm-config && . ~/.wpas-vm-config
 
 if [ -z "$KERNEL" ] && [ -z "$KERNELDIR" ] ; then
        echo "You need to set a KERNEL or KERNELDIR (in the environment or vm-config)"