openwifi/user_space/fosdem-11ag.sh

20 lines
390 B
Bash
Raw Normal View History

#!/bin/bash
2021-01-20 12:30:12 +00:00
# SPDX-FileCopyrightText: 2019 Jiao Xianjun <putaoshu@msn.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
killall hostapd
killall webfsd
cd ~/openwifi
service network-manager stop
./wgd.sh
ifconfig sdr0 192.168.13.1
route add default gw 192.168.10.1
service isc-dhcp-server restart
hostapd hostapd-openwifi-11ag.conf &
sleep 5
cd webserver
webfsd -F -p 80 -f index.html &