It can be useful to configure a different module directory, so you don't
need to install the kernel modules in the host /lib/modules/ location.
Allow configuring it in the config file.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
mount --bind "$TESTDIR/vm/regdb/" /lib/firmware
+if [ "$MODULEDIR" != "" ] ; then
+ mount --bind $MODULEDIR /lib/modules
+fi
+
# reload reg if (and only if) cfg80211.ko is already loaded
iw reg reload || true
A+="init=$CMD "
A+="testdir=$TESTDIR "
A+="timewarp=$TIMEWARP "
+A+="MODULEDIR=$MODULEDIR "
A+="TELNET=$TELNET_ARG "
A+="EPATH=$EPATH "
A+="ARGS=$argsfile "