代码拉取完成,页面将自动刷新
#!/bin/bash
# NEED to be a sudoer in your system to run this without prompt for password
# execute "sudo visudo" and add the following line to become a sudoer without need for password:
# username ALL=(ALL) NOPASSWD: ALL
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
IP=${1:-192.168.2.1/24}
exec > /dev/null 2>&1
mkdir -p build
cd build
cmake ..
make
cd ..
sleep 2
#Set your own mac address
#sudo ifconfig tap0 down
#sudo ifconfig tap0 hw ether ea:be:14:a2:b8:1
#sudo ifconfig tap0 up
sudo build/phy/trx -v -f 1000000000 -B 20000000 > phy_log.txt 2>&1 &
sleep 8
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。