openwifi/user_space/fosdem.sh
Xianjun Jiao 94847d8099 Add dynamic reloading driver and FPGA
Rebooting/power-cycle is not needed anymore!
2022-05-13 17:01:41 +02:00

27 lines
489 B
Bash
Executable File

#!/bin/bash
# Author: Xianjun Jiao
# SPDX-FileCopyrightText: 2019 UGent
# SPDX-License-Identifier: AGPL-3.0-or-later
# test_mode=$1
# if [ -z $test_mode ]
# then
# test_mode=0
# fi
# echo test_mode $test_mode
killall hostapd
killall webfsd
cd ~/openwifi
service network-manager stop
# ./wgd.sh $test_mode
ifconfig sdr0 192.168.13.1
route add default gw 192.168.10.1
service isc-dhcp-server restart
hostapd hostapd-openwifi.conf &
sleep 5
cd webserver
webfsd -F -p 80 -f index.html &