mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-03 23:30:48 +00:00
Update hotspot
This commit is contained in:
parent
f1b1bbd2f2
commit
bec1f14598
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
@ -9,7 +9,7 @@ then
|
||||||
fi
|
fi
|
||||||
echo "Configuring components..."
|
echo "Configuring components..."
|
||||||
if sudo ! test -f /etc/hostapd/hostapd.conf;
|
if sudo ! test -f /etc/hostapd/hostapd.conf;
|
||||||
then sudo cp -f /home/pi/pivilion/config/hostapd.hotspot /etc/hostapd/hostapd.conf
|
then sudo cp -f /home/pi/pivilion/config/hostapd.hotspot /etc/hostapd/hostapd.conf
|
||||||
fi
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue