diff --git a/user_space/set_rx_monitor_all.sh b/user_space/set_rx_monitor_all.sh new file mode 100755 index 0000000..1540213 --- /dev/null +++ b/user_space/set_rx_monitor_all.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +home_dir=$(pwd) + +if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then + cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr +else + cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr +fi + +set -x +# set +if [[ -n $1 ]]; then + echo $1 > rx_monitor_all +else + echo 1 > rx_monitor_all +fi + +# show +cat rx_monitor_all +set +x + +cd $home_dir +