diff --git a/Makefile b/Makefile index 2b1a7f0..91de1c5 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,6 @@ spirilink-driver: @echo "SpiriLink driver installation complete." -# Configure SpiriLink interface .PHONY: configure-spirilink configure-spirilink: @echo "Configuring SpiriLink interface as spir0..." @@ -131,6 +130,11 @@ configure-spirilink: echo "Error: SpiriLink interface not detected."; \ exit 1; \ fi; \ + if [ "$$spirilink_iface" = "wlan0" ]; then \ + echo "Error: SpiriLink not detected"; \ + echo "Please reboot the system and run the script again."; \ + exit 1; \ + fi; \ echo "Detected SpiriLink interface: $$spirilink_iface"; \ mac_address=$$(cat /sys/class/net/$$spirilink_iface/address); \ echo "Detected MAC address: $$mac_address"; \ @@ -149,7 +153,6 @@ configure-spirilink: @$(SUDO) systemctl restart NetworkManager @echo "SpiriLink configuration complete." - # Install SpiriLink software .PHONY: spirilink-software spirilink-software: