mirror of
https://github.com/open-sdr/openwifi.git
synced 2024-12-30 10:39:09 +00:00
22 lines
316 B
Bash
22 lines
316 B
Bash
|
#!/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 "2$1" > csma_cfg0
|
||
|
fi
|
||
|
|
||
|
# show
|
||
|
cat csma_cfg0
|
||
|
set +x
|
||
|
|
||
|
cd $home_dir
|