|
|
@@ -76,7 +76,6 @@ 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
|
|
|
@@ -87,7 +86,6 @@ rm -f /lib/systemd/system/bootstrap_captive_server.service
|
|
|
rm -f /lib/systemd/system/bootstrap_captive@.service
|
|
|
ln -s "{0}/bootstrap_captive_server.service" /lib/systemd/system/
|
|
|
systemctl daemon-reload
|
|
|
-systemctl disable bootstrap_captive_server.service
|
|
|
|
|
|
""".format(args.install_dir)
|
|
|
from subprocess import run
|