mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2025-04-29 16:47:17 +00:00
Update hotspot
This commit is contained in:
parent
f1b1bbd2f2
commit
bec1f14598
@ -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
|
||||
@ -9,7 +9,7 @@ then
|
||||
fi
|
||||
echo "Configuring components..."
|
||||
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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user