tests: Add regulatory database to VMs

Add a common well-known regulatory database to the test VMs during runs
to remove one thing to have correct in the host.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2021-09-23 17:05:10 +02:00 committed by Jouni Malinen
parent 139202a116
commit a29c2399a7
3 changed files with 2 additions and 0 deletions

View file

@ -38,6 +38,8 @@ TELNET=$(sed 's/.*TELNET=\([^ ]*\) .*/\1/' /proc/cmdline)
ARGS=$(sed 's/.*ARGS=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) ARGS=$(sed 's/.*ARGS=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline)
LOGDIR=$(sed 's/.*LOGDIR=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) LOGDIR=$(sed 's/.*LOGDIR=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline)
mount --bind "$TESTDIR/vm/regdb/" /lib/firmware
# create /dev entries we need # create /dev entries we need
mknod -m 660 /dev/ttyS0 c 4 64 mknod -m 660 /dev/ttyS0 c 4 64
mknod -m 666 /dev/ptmx c 5 2 mknod -m 666 /dev/ptmx c 5 2

Binary file not shown.

Binary file not shown.