diff --git a/usr/local/bin/hotspot b/usr/local/bin/hotspot index da82ff3..35719f8 100755 --- a/usr/local/bin/hotspot +++ b/usr/local/bin/hotspot @@ -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 sudo ! 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