1#!/bin/bash 2 3# Author: Xianjun Jiao 4# SPDX-FileCopyrightText: 2019 UGent 5# SPDX-License-Identifier: AGPL-3.0-or-later 6 7# test_mode=$1 8# if [ -z $test_mode ] 9# then 10# test_mode=0 11# fi 12# echo 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-11ag.conf & 24sleep 5 25cd webserver 26webfsd -F -p 80 -f index.html & 27