|
|
@@ -33,16 +33,18 @@ set -x
|
|
|
dpkg -l hostapd dnsmasq python3-rpi.gpio 2>&1 1> /dev/null || dpkg -i -R blob/
|
|
|
systemctl unmask hostapd.service
|
|
|
systemctl disable hostapd.service dnsmasq.service
|
|
|
+systemctl disable bootstrap_captive@server.service || true
|
|
|
sed -i 's/^source-directory.*$/source \/etc\/network\/interfaces.d\/*/' /etc/network/interfaces
|
|
|
touch /etc/network/interfaces.d/wlan0.conf
|
|
|
rm -f /etc/hostapd/hostapd.conf
|
|
|
ln -s "{0}/hostapd.conf" /etc/hostapd/hostapd.conf
|
|
|
mv /etc/dnsmasq.conf /etc/dnsmasq.orig || true
|
|
|
ln -s "{0}/dnsmasq.conf" /etc/dnsmasq.conf
|
|
|
+rm -f /lib/systemd/system/bootstrap_captive_server.service
|
|
|
rm -f /lib/systemd/system/bootstrap_captive@.service
|
|
|
-ln -s "{0}/bootstrap_captive@.service" /lib/systemd/system/
|
|
|
+ln -s "{0}/bootstrap_captive_server.service" /lib/systemd/system/
|
|
|
systemctl daemon-reload
|
|
|
-systemctl disable bootstrap_captive@server.service
|
|
|
+systemctl disable bootstrap_captive_server.service
|
|
|
|
|
|
""".format(args.install_dir)
|
|
|
from subprocess import run
|