xref: /openwifi/user_space/fosdem-11ag.sh (revision 5a9ac0d13efeb2e19b9e2a143180bb80e10dd076)
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
18# service network-manager stop
19# ./wgd.sh $test_mode
20ifconfig sdr0 192.168.13.1
21rm  /var/run/dhcpd.pid
22sleep 1
23service isc-dhcp-server restart
24hostapd hostapd-openwifi-11ag.conf &
25sleep 5
26cd webserver
27webfsd -F -p 80 -f index.html &
28route add default gw 192.168.10.1
29