Adapt wgd.sh and fosdem.sh for kuiper Linux environment

This commit is contained in:
Xianjun Jiao 2023-01-17 14:29:15 +01:00
parent 3933c53031
commit 5a9ac0d13e
3 changed files with 19 additions and 9 deletions

View File

@ -15,12 +15,14 @@ killall hostapd
killall webfsd
cd ~/openwifi
service network-manager stop
# service network-manager stop
# ./wgd.sh $test_mode
ifconfig sdr0 192.168.13.1
route add default gw 192.168.10.1
rm /var/run/dhcpd.pid
sleep 1
service isc-dhcp-server restart
hostapd hostapd-openwifi-11ag.conf &
sleep 5
cd webserver
webfsd -F -p 80 -f index.html &
route add default gw 192.168.10.1

View File

@ -15,12 +15,15 @@ killall hostapd
killall webfsd
cd ~/openwifi
service network-manager stop
# service network-manager stop
# ./wgd.sh $test_mode
ifconfig sdr0 192.168.13.1
route add default gw 192.168.10.1
rm /var/run/dhcpd.pid
sleep 1
service isc-dhcp-server restart
hostapd hostapd-openwifi.conf &
sleep 5
cd webserver
webfsd -F -p 80 -f index.html &
route add default gw 192.168.10.1

View File

@ -125,10 +125,15 @@ fi
echo " "
service network-manager stop
killall hostapd
service dhcpcd stop #dhcp client. it will get secondary ip for sdr0 which causes trouble
killall dhcpd
killall wpa_supplicant
#service network-manager stop
ifconfig sdr0 down
rmmod sdr
insert_check_module ./ ad9361_drv
# insert_check_module ./ ad9361_drv
if [ $DOWNLOAD_FLAG -eq 1 ]; then
download_module fpga $TARGET_DIR
@ -142,7 +147,7 @@ else
fi
./rf_init_11n.sh
insert_check_module ./ xilinx_dma
# insert_check_module ./ xilinx_dma
depmod
modprobe mac80211
@ -161,8 +166,8 @@ do
fi
done
[ -e /tmp/check_calib_inf.pid ] && kill -0 $(</tmp/check_calib_inf.pid)
./check_calib_inf.sh
# [ -e /tmp/check_calib_inf.pid ] && kill -0 $(</tmp/check_calib_inf.pid)
# ./check_calib_inf.sh
echo the end
# dmesg