diff --git a/etcs/hostapd/edit_ssid.sh b/etcs/hostapd/edit_ssid.sh index 9f8c8cb..e02656d 100644 --- a/etcs/hostapd/edit_ssid.sh +++ b/etcs/hostapd/edit_ssid.sh @@ -1,4 +1,5 @@ #!/bin/bash # edit_ssid.sh - edits hostapd.conf and sets a MAC address-based SSID 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 > hostapd.conf +sed "/ssid=.*/s/ssid=.*/ssid=$ssid/" hostapd.conf > newconf +mv newconf hostapd.conf diff --git a/etcs/install.sh b/etcs/install.sh index efaf7ae..f556214 100644 --- a/etcs/install.sh +++ b/etcs/install.sh @@ -8,7 +8,7 @@ cp -R hostapd/ /etc cp -R lighttpd/ /etc cp dnsmasq.conf /etc cp rc.local /etc -cp -R ../frontend /var/www/html +cp -R ../frontend/* /var/www/html mkdir -p /usr/local/lib/terahz cp -R ../backend/* /usr/local/lib/terahz cd /etc/hostapd