Don't allow wlan0 to be renamed
This commit is contained in:
parent
850c8966cf
commit
2a2f99d407
7
Makefile
7
Makefile
@ -122,7 +122,6 @@ spirilink-driver:
|
|||||||
@echo "SpiriLink driver installation complete."
|
@echo "SpiriLink driver installation complete."
|
||||||
|
|
||||||
|
|
||||||
# Configure SpiriLink interface
|
|
||||||
.PHONY: configure-spirilink
|
.PHONY: configure-spirilink
|
||||||
configure-spirilink:
|
configure-spirilink:
|
||||||
@echo "Configuring SpiriLink interface as spir0..."
|
@echo "Configuring SpiriLink interface as spir0..."
|
||||||
@ -131,6 +130,11 @@ configure-spirilink:
|
|||||||
echo "Error: SpiriLink interface not detected."; \
|
echo "Error: SpiriLink interface not detected."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
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"; \
|
echo "Detected SpiriLink interface: $$spirilink_iface"; \
|
||||||
mac_address=$$(cat /sys/class/net/$$spirilink_iface/address); \
|
mac_address=$$(cat /sys/class/net/$$spirilink_iface/address); \
|
||||||
echo "Detected MAC address: $$mac_address"; \
|
echo "Detected MAC address: $$mac_address"; \
|
||||||
@ -149,7 +153,6 @@ configure-spirilink:
|
|||||||
@$(SUDO) systemctl restart NetworkManager
|
@$(SUDO) systemctl restart NetworkManager
|
||||||
@echo "SpiriLink configuration complete."
|
@echo "SpiriLink configuration complete."
|
||||||
|
|
||||||
|
|
||||||
# Install SpiriLink software
|
# Install SpiriLink software
|
||||||
.PHONY: spirilink-software
|
.PHONY: spirilink-software
|
||||||
spirilink-software:
|
spirilink-software:
|
||||||
|
Loading…
Reference in New Issue
Block a user