Compare commits

...

7 Commits

Author SHA1 Message Date
v3d
3deb7dde9b rename index.html to index.php 2022-06-15 23:52:13 +00:00
v3d
1483a817d5 Add new directory 2022-06-15 23:10:38 +00:00
v3d
b5d6614bc9 Delete .gitkeep 2022-06-15 23:10:09 +00:00
v3d
5c4705db5d Delete hostapd.conf 2022-06-15 23:09:58 +00:00
v3d
c9b006956d Update hotspot 2022-06-15 22:50:24 +00:00
v3d
bec1f14598 Update hotspot 2022-06-15 19:27:51 +00:00
v3d
f1b1bbd2f2 Fix overwriting /etc/hostapd/hostapd.conf when switching from onion to hotspot 2022-06-15 19:26:41 +00:00
3 changed files with 4 additions and 16 deletions

View File

@ -1,14 +0,0 @@
interface=wlan0
driver=nl80211
ssid=pivilion
channel=6
hw_mode=g
auth_algs=1
wpa=3
wpa_passphrase=darknetofthings
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo "Checking for required packages and installing if missing"
echo "Checking for required packages and installing what's missing"
if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
sudo apt update
@ -8,7 +8,9 @@ then
sudo cp -rT /home/pi/pivilion/config/html /var/www/html/pivilion/gen
fi
echo "Configuring components..."
sudo cp -f /home/pi/pivilion/config/hostapd.hotspot /etc/hostapd/hostapd.conf
if ! test -f /etc/hostapd/hostapd.conf;
then sudo cp -f /home/pi/pivilion/config/hostapd.hotspot /etc/hostapd/hostapd.conf
fi
sudo cp -f /home/pi/pivilion/config/dnsmasq.hotspot /etc/dnsmasq.conf
sudo cp /home/pi/pivilion/config/html/.htaccess /var/www/html/pivilion/gen/.htaccess
sudo chown -R www-data:www-data /var/www/html