mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-18 10:46:22 +00:00
Add disable script to support eifs trigger config
This commit is contained in:
parent
aaceb807fd
commit
afbf0d645c
21
user_space/eifs_by_last_rx_fail_disable.sh
Executable file
21
user_space/eifs_by_last_rx_fail_disable.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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 "4$1" > csma_cfg0
|
||||
fi
|
||||
|
||||
# show
|
||||
cat csma_cfg0
|
||||
set +x
|
||||
|
||||
cd $home_dir
|
21
user_space/eifs_by_last_tx_fail_disable.sh
Executable file
21
user_space/eifs_by_last_tx_fail_disable.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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 "5$1" > csma_cfg0
|
||||
fi
|
||||
|
||||
# show
|
||||
cat csma_cfg0
|
||||
set +x
|
||||
|
||||
cd $home_dir
|
Loading…
Reference in New Issue
Block a user