Don't allow wlan0 to be renamed

This commit is contained in:
Alex 2024-12-13 11:50:32 -04:00
parent 850c8966cf
commit 2a2f99d407

View File

@ -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: