View Single Post
Old 07-11-2024, 01:18 AM   #1
ajkessel
Connoisseur
ajkessel began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Jul 2017
Location: Boston
Device: Kobo Libra 2
Permanently change MAC address on Libra 2

I've never been able to access WiFi in Marriott hotels from my Libra 2. There is something broken with the portal -- I believe either broken SSL or something with DNS -- that makes it impossible to get through the authentication process. But I've found a workaround -- authenticate with another device, then change the Libra's MAC address to match the other device. I have the following script runnable from Nicklemenu:

Code:
#!/bin/sh
ip link set dev wlan0 down
ip link set dev wlan0 address (MAC here)
ip link set dev wlan0 up
which works fine, but the MAC address seems to reset whenever the WiFi goes to sleep and comes back.

I tried adding a similar line to /etc/udhcpc.d/default.script but it's still not "sticking".

Does anyone know how to make this change permanent, or at least have it take effect whenever WiFi comes up?
ajkessel is offline   Reply With Quote