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
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue