1#!/bin/bash 2 3# Author: Xianjun Jiao 4# SPDX-FileCopyrightText: 2019 UGent 5# SPDX-License-Identifier: AGPL-3.0-or-later 6 7test_mode=$1 8if [ -z $test_mode ] 9then 10 test_mode=0 11fi 12echo test_mode $test_mode 13 14killall hostapd 15killall webfsd 16 17cd ~/openwifi 18service network-manager stop 19./wgd.sh $test_mode 20ifconfig sdr0 192.168.13.1 21route add default gw 192.168.10.1 22service isc-dhcp-server restart 23hostapd hostapd-openwifi.conf & 24sleep 5 25cd webserver 26webfsd -F -p 80 -f index.html & 27