mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2025-04-30 00:57:16 +00:00
Compare commits
7 Commits
b1cee0e643
...
3deb7dde9b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3deb7dde9b | ||
![]() |
1483a817d5 | ||
![]() |
b5d6614bc9 | ||
![]() |
5c4705db5d | ||
![]() |
c9b006956d | ||
![]() |
bec1f14598 | ||
![]() |
f1b1bbd2f2 |
@ -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
|
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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 ];
|
if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ];
|
||||||
then
|
then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
@ -8,7 +8,9 @@ then
|
|||||||
sudo cp -rT /home/pi/pivilion/config/html /var/www/html/pivilion/gen
|
sudo cp -rT /home/pi/pivilion/config/html /var/www/html/pivilion/gen
|
||||||
fi
|
fi
|
||||||
echo "Configuring components..."
|
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 -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 cp /home/pi/pivilion/config/html/.htaccess /var/www/html/pivilion/gen/.htaccess
|
||||||
sudo chown -R www-data:www-data /var/www/html
|
sudo chown -R www-data:www-data /var/www/html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user