diff --git a/user_space/fosdem-11ag.sh b/user_space/fosdem-11ag.sh index a001fd9..861ade1 100755 --- a/user_space/fosdem-11ag.sh +++ b/user_space/fosdem-11ag.sh @@ -4,12 +4,19 @@ # 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 +./wgd.sh $test_mode ifconfig sdr0 192.168.13.1 route add default gw 192.168.10.1 service isc-dhcp-server restart diff --git a/user_space/fosdem.sh b/user_space/fosdem.sh index 8d86291..17f1909 100755 --- a/user_space/fosdem.sh +++ b/user_space/fosdem.sh @@ -4,12 +4,19 @@ # 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 +./wgd.sh $test_mode ifconfig sdr0 192.168.13.1 route add default gw 192.168.10.1 service isc-dhcp-server restart