permissions

This commit is contained in:
Alex 2024-12-12 17:05:42 -04:00
parent baa8c96f5f
commit cc16b86629

View File

@ -88,21 +88,21 @@ dependencies:
# Install SpiriLink driver
.PHONY: spirilink-driver
spirilink-driver:
$(SUDO) mkdir -p ~/tmp
@$(SUDO) mkdir -p /tmp/spirilink
@if [ "$(DRIVER_TYPE)" = "EU" ]; then \
echo "Installing SpiriLink 8812EU driver..."; \
wget -O ~/tmp/8812eu.ko https://git.spirirobotics.com/aepko/SpiriLink-Drivers/raw/branch/main/Raspberry%20Pi/8812EU/8812eu.ko && \
$(SUDO) cp ~/tmp/8812eu.ko /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/ && \
$(SUDO) wget -O /tmp/spirilink/8812eu.ko https://git.spirirobotics.com/aepko/SpiriLink-Drivers/raw/branch/main/Raspberry%20Pi/8812EU/8812eu.ko && \
$(SUDO) cp /tmp/spirilink/8812eu.ko /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/ && \
$(SUDO) depmod -a; \
elif [ "$(DRIVER_TYPE)" = "AU" ]; then \
echo "Installing SpiriLink 8812AU driver..."; \
wget -O ~/tmp/8812au.ko https://git.spirirobotics.com/aepko/SpiriLink-Drivers/raw/branch/main/Raspberry%20Pi/8812AU/8812au.ko && \
$(SUDO) cp ~/tmp/8812au.ko /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/ && \
$(SUDO) wget -O /tmp/spirilink/8812au.ko https://git.spirirobotics.com/aepko/SpiriLink-Drivers/raw/branch/main/Raspberry%20Pi/8812AU/8812au.ko && \
$(SUDO) cp /tmp/spirilink/8812au.ko /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/ && \
$(SUDO) depmod -a; \
else \
echo "Unknown driver type: $(DRIVER_TYPE). Skipping driver installation."; \
fi;
@echo "SpiriLink driver installation complete."
@echo "\nSpiriLink driver installation complete."
# Configure SpiriLink interface
.PHONY: configure-spirilink