xref: /openwifi/user_space/set_rx_monitor_all.sh (revision 6fdc02fb326ac7beccc948dddf343004bd0a7105)
1#!/bin/bash
2
3home_dir=$(pwd)
4
5if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then
6  cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr
7else
8  cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr
9fi
10
11set -x
12# set
13if [[ -n $1 ]]; then
14  echo $1 > rx_monitor_all
15else
16  echo 1 > rx_monitor_all
17fi
18
19# show
20cat rx_monitor_all
21set +x
22
23cd $home_dir
24
25