diff --git a/backend/run.sh b/backend/run.sh deleted file mode 100755 index 7664abb..0000000 --- a/backend/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# run.sh - run the backend server -cd `dirname $0` -sudo gunicorn app:app -b 0.0.0.0:5000 & diff --git a/etcs/dnsmasq.conf b/etcs/dnsmasq.conf deleted file mode 100644 index 335be3b..0000000 --- a/etcs/dnsmasq.conf +++ /dev/null @@ -1,3 +0,0 @@ -interface=wlan0 - dhcp-range=192.168.1.10,192.168.1.100,255.255.255.0,24h - address=/terahz.site/192.168.1.1 diff --git a/etcs/hostapd/edit_ssid.sh b/etcs/hostapd/edit_ssid.sh deleted file mode 100755 index 1e6bc89..0000000 --- a/etcs/hostapd/edit_ssid.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# edit_ssid.sh - edits hostapd.conf and sets a MAC address-based SSID -cd `dirname $0` -ssid=`ip link | awk '/wlan0/ {getline; print $2}' | awk -v FS=':' '{printf("TeraHz_%s%s%s\n", $4, $5, $6)}'` -sed "/ssid=.*/s/ssid=.*/ssid=$ssid/" hostapd.conf > newconf -mv newconf hostapd.conf diff --git a/etcs/hostapd/hostapd.conf b/etcs/hostapd/hostapd.conf deleted file mode 100644 index 07bd7dd..0000000 --- a/etcs/hostapd/hostapd.conf +++ /dev/null @@ -1,9 +0,0 @@ -interface=wlan0 -hw_mode=g -channel=8 -wpa=2 -wpa_key_mgmt=WPA-PSK -wpa_pairwise=TKIP -rsn_pairwise=CCMP -ssid=TeraHz -wpa_passphrase=terahertz diff --git a/etcs/install.sh b/etcs/install.sh deleted file mode 100755 index b689da0..0000000 --- a/etcs/install.sh +++ /dev/null @@ -1,23 +0,0 @@ -# install.sh - install TeraHz onto a Raspbian Lite instance -cd `dirname $0` - -apt -y update -apt -y full-upgrade -apt install -y python3 python3-pip lighttpd dnsmasq hostapd libatlas-base-dev -pip3 install numpy pandas flask smbus2 pyserial gunicorn - -cp -R hostapd/* /etc/hostapd/ -chmod +rx /etc/hostapd/edit_ssid.sh -cp dnsmasq.conf /etc/ - -cp rc.local /etc/ -chmod +rx /etc/rc.local -cp interfaces-terahz /etc/network/interfaces.d/ - -cp -R ../frontend/* /var/www/html/ - -mkdir -p /usr/local/lib/terahz -cp -R ../backend/* /usr/local/lib/terahz - -systemctl unmask dnsmasq hostapd lighttpd -systemctl enable dnsmasq hostapd lighttpd diff --git a/etcs/interfaces-terahz b/etcs/interfaces-terahz deleted file mode 100644 index 4370c25..0000000 --- a/etcs/interfaces-terahz +++ /dev/null @@ -1,3 +0,0 @@ -iface wlan0 inet static - address 192.168.1.1 - netmask 255.255.255.0 diff --git a/etcs/rc.local b/etcs/rc.local deleted file mode 100755 index f44e1e5..0000000 --- a/etcs/rc.local +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e -# -# rc.local -# -# This script is executed at the end of each multiuser runlevel. -# Make sure that the script will "exit 0" on success or any other -# value on error. -# -# In order to enable or disable this script just change the execution -# bits. -# -# By default this script does nothing. -/etc/hostapd/edit_ssid.sh & -/usr/local/lib/terahz/run.sh & -sleep 3 -service hostapd restart # restart hostapd to prevent a weird startup race condition