Thats better

This commit is contained in:
Alex 2024-12-13 11:42:41 -04:00
parent 1dcb0d73b6
commit 850c8966cf

View File

@ -100,25 +100,28 @@ dependencies:
spirilink-driver:
@read -p "Is SpiriLink using 8812EU or 8812AU? Enter EU/AU: " driver; \
if [ "$$driver" = "EU" ] || [ "$$driver" = "eu" ]; then \
$(MAKE) spirilink-driver DRIVER_TYPE=EU; \
export DRIVER_TYPE=EU; \
elif [ "$$driver" = "AU" ] || [ "$$driver" = "au" ]; then \
$(MAKE) spirilink-driver DRIVER_TYPE=AU; \
export DRIVER_TYPE=AU; \
else \
echo "Invalid input. Skipping SpiriLink driver installation."; \
$(SUDO) mkdir -p ~/tmp
@if [ "$(DRIVER_TYPE)" = "EU" ]; then \
exit 1; \
fi; \
$(SUDO) mkdir -p ~/tmp; \
if [ "$$DRIVER_TYPE" = "EU" ]; then \
echo "Installing SpiriLink 8812EU driver..."; \
git clone -b v5.15.0.1 https://github.com/svpcom/rtl8812eu.git ~/tmp/rtl8812eu && \
cd ~/tmp/rtl8812eu && $(SUDO) ./dkms-install.sh; \
elif [ "$(DRIVER_TYPE)" = "AU" ]; then \
elif [ "$$DRIVER_TYPE" = "AU" ]; then \
echo "Installing SpiriLink 8812AU driver..."; \
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git ~/tmp/rtl8812au && \
cd ~/tmp/rtl8812au && $(SUDO) ./dkms-install.sh; \
else \
echo "Unknown driver type: $(DRIVER_TYPE). Skipping driver installation."; \
echo "Unknown driver type: $$DRIVER_TYPE. Skipping driver installation."; \
fi;
@echo "SpiriLink driver installation complete."
# Configure SpiriLink interface
.PHONY: configure-spirilink
configure-spirilink: