2020-12-17 15:49:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-02-03 14:47:45 +00:00
|
|
|
# Author: Xianjun Jiao
|
|
|
|
# SPDX-FileCopyrightText: 2019 UGent
|
2021-01-20 12:30:12 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2022-05-13 15:01:41 +00:00
|
|
|
# test_mode=$1
|
|
|
|
# if [ -z $test_mode ]
|
|
|
|
# then
|
|
|
|
# test_mode=0
|
|
|
|
# fi
|
|
|
|
# echo test_mode $test_mode
|
2022-03-28 10:35:17 +00:00
|
|
|
|
2020-12-17 15:49:31 +00:00
|
|
|
killall hostapd
|
|
|
|
killall webfsd
|
|
|
|
|
|
|
|
cd ~/openwifi
|
2023-01-17 13:29:15 +00:00
|
|
|
# service network-manager stop
|
2022-05-13 15:01:41 +00:00
|
|
|
# ./wgd.sh $test_mode
|
2020-12-17 15:49:31 +00:00
|
|
|
ifconfig sdr0 192.168.13.1
|
2023-01-17 13:29:15 +00:00
|
|
|
rm /var/run/dhcpd.pid
|
|
|
|
sleep 1
|
2020-12-17 15:49:31 +00:00
|
|
|
service isc-dhcp-server restart
|
|
|
|
hostapd hostapd-openwifi-11ag.conf &
|
|
|
|
sleep 5
|
|
|
|
cd webserver
|
|
|
|
webfsd -F -p 80 -f index.html &
|
2023-01-17 13:29:15 +00:00
|
|
|
route add default gw 192.168.10.1
|