Thats better
This commit is contained in:
parent
1dcb0d73b6
commit
850c8966cf
15
Makefile
15
Makefile
@ -100,25 +100,28 @@ dependencies:
|
|||||||
spirilink-driver:
|
spirilink-driver:
|
||||||
@read -p "Is SpiriLink using 8812EU or 8812AU? Enter EU/AU: " driver; \
|
@read -p "Is SpiriLink using 8812EU or 8812AU? Enter EU/AU: " driver; \
|
||||||
if [ "$$driver" = "EU" ] || [ "$$driver" = "eu" ]; then \
|
if [ "$$driver" = "EU" ] || [ "$$driver" = "eu" ]; then \
|
||||||
$(MAKE) spirilink-driver DRIVER_TYPE=EU; \
|
export DRIVER_TYPE=EU; \
|
||||||
elif [ "$$driver" = "AU" ] || [ "$$driver" = "au" ]; then \
|
elif [ "$$driver" = "AU" ] || [ "$$driver" = "au" ]; then \
|
||||||
$(MAKE) spirilink-driver DRIVER_TYPE=AU; \
|
export DRIVER_TYPE=AU; \
|
||||||
else \
|
else \
|
||||||
echo "Invalid input. Skipping SpiriLink driver installation."; \
|
echo "Invalid input. Skipping SpiriLink driver installation."; \
|
||||||
$(SUDO) mkdir -p ~/tmp
|
exit 1; \
|
||||||
@if [ "$(DRIVER_TYPE)" = "EU" ]; then \
|
fi; \
|
||||||
|
$(SUDO) mkdir -p ~/tmp; \
|
||||||
|
if [ "$$DRIVER_TYPE" = "EU" ]; then \
|
||||||
echo "Installing SpiriLink 8812EU driver..."; \
|
echo "Installing SpiriLink 8812EU driver..."; \
|
||||||
git clone -b v5.15.0.1 https://github.com/svpcom/rtl8812eu.git ~/tmp/rtl8812eu && \
|
git clone -b v5.15.0.1 https://github.com/svpcom/rtl8812eu.git ~/tmp/rtl8812eu && \
|
||||||
cd ~/tmp/rtl8812eu && $(SUDO) ./dkms-install.sh; \
|
cd ~/tmp/rtl8812eu && $(SUDO) ./dkms-install.sh; \
|
||||||
elif [ "$(DRIVER_TYPE)" = "AU" ]; then \
|
elif [ "$$DRIVER_TYPE" = "AU" ]; then \
|
||||||
echo "Installing SpiriLink 8812AU driver..."; \
|
echo "Installing SpiriLink 8812AU driver..."; \
|
||||||
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git ~/tmp/rtl8812au && \
|
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git ~/tmp/rtl8812au && \
|
||||||
cd ~/tmp/rtl8812au && $(SUDO) ./dkms-install.sh; \
|
cd ~/tmp/rtl8812au && $(SUDO) ./dkms-install.sh; \
|
||||||
else \
|
else \
|
||||||
echo "Unknown driver type: $(DRIVER_TYPE). Skipping driver installation."; \
|
echo "Unknown driver type: $$DRIVER_TYPE. Skipping driver installation."; \
|
||||||
fi;
|
fi;
|
||||||
@echo "SpiriLink driver installation complete."
|
@echo "SpiriLink driver installation complete."
|
||||||
|
|
||||||
|
|
||||||
# Configure SpiriLink interface
|
# Configure SpiriLink interface
|
||||||
.PHONY: configure-spirilink
|
.PHONY: configure-spirilink
|
||||||
configure-spirilink:
|
configure-spirilink:
|
||||||
|
Loading…
Reference in New Issue
Block a user