This commit is contained in:
Alex 2024-12-13 11:12:27 -04:00
parent 3afdcbddee
commit 6df195a8c8

View File

@ -155,6 +155,7 @@ spirilink-software:
read -p "SpiriLink software source already exists. Reinstall? (Y/N): " reinstall; \ read -p "SpiriLink software source already exists. Reinstall? (Y/N): " reinstall; \
if [ "$$reinstall" = "Y" ] || [ "$$reinstall" = "y" ]; then \ if [ "$$reinstall" = "Y" ] || [ "$$reinstall" = "y" ]; then \
cd ~/home/spiri/spirilink && git pull && \ cd ~/home/spiri/spirilink && git pull && \
$(SUDO) chmod +x ./scripts/install_gs.sh; \
$(SUDO) ./scripts/install_gs.sh spir0; \ $(SUDO) ./scripts/install_gs.sh spir0; \
$(SUDO) bash -c 'echo "WFB_NICS=\"spir0\"" > /etc/default/wifibroadcast'; \ $(SUDO) bash -c 'echo "WFB_NICS=\"spir0\"" > /etc/default/wifibroadcast'; \
$(SUDO) cp $(CURDIR)/wifibroadcast.cfg /etc/; \ $(SUDO) cp $(CURDIR)/wifibroadcast.cfg /etc/; \
@ -164,6 +165,7 @@ spirilink-software:
else \ else \
git clone https://git.spirirobotics.com/aepko/SpiriLink.git ~/home/spiri/spirilink && \ git clone https://git.spirirobotics.com/aepko/SpiriLink.git ~/home/spiri/spirilink && \
cd ~/home/spiri/spirilink && \ cd ~/home/spiri/spirilink && \
$(SUDO) chmod +x ./scripts/install_gs.sh; \
$(SUDO) ./scripts/install_gs.sh spir0; \ $(SUDO) ./scripts/install_gs.sh spir0; \
$(SUDO) bash -c 'echo "WFB_NICS=\"spir0\"" > /etc/default/wifibroadcast'; \ $(SUDO) bash -c 'echo "WFB_NICS=\"spir0\"" > /etc/default/wifibroadcast'; \
$(SUDO) cp $(CURDIR)/wifibroadcast.cfg /etc/; \ $(SUDO) cp $(CURDIR)/wifibroadcast.cfg /etc/; \