From cc16b86629a9389d5bd03a35dacec4e56f7beb73 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 12 Dec 2024 17:05:42 -0400 Subject: [PATCH] permissions --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index cf18707..763a2a2 100644 --- a/Makefile +++ b/Makefile @@ -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