Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2024, 12:49 PM   #16
ajkessel
Connoisseur
ajkessel began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Jul 2017
Location: Boston
Device: Kobo Libra 2
This worked: I added a file /etc/udev/rules.d/98-set-mac.rules:
Code:
KERNEL=="wlan*", ACTION=="add", RUN+="/usr/local/Kobo/udev/fix_net"
and then fix_net is:
Code:
#/bin/sh
MAC='mac address here'
ip link set dev wlan0 down 
ip link set dev wlan0 address $MAC
ip link set dev wlan0 up
So the final workflow is to authenticate with an Apple device using its built-in hardware MAC address; then switch the Apple device to randomize MAC (to avoid duplication); then when the Kobo boots up it can access the network using the previously-authenticated MAC address.
ajkessel is offline   Reply With Quote
Old Yesterday, 10:14 AM   #17
jgneff
Member
jgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the party
 
jgneff's Avatar
 
Posts: 19
Karma: 147742
Join Date: Nov 2017
Location: Vancouver, BC, Canada
Device: Kobo Touch B/C, Kobo Glo HD, Kobo Clara HD, Kobo Libra 2
For what it's worth, a long time ago I had luck adding an exit hook to the DHCP response, as follows:

Code:
# /etc/dhcpcd.exit-hook - sets the host name from DHCP data
# In Ubuntu: /lib/dhcpcd/dhcpcd-hooks/30-hostname (dhcpcd5)
# Called by: /libexec/dhcpcd-run-hooks
if $if_up; then
    if [ -n "$new_host_name" ]; then
        hostname "$new_host_name"
    fi
fi
I wanted to set the host name as provided by my router in the DHCP response, but perhaps you could set the MAC address here instead.
jgneff is offline   Reply With Quote
Old Yesterday, 09:39 PM   #18
ajkessel
Connoisseur
ajkessel began at the beginning.
 
Posts: 71
Karma: 10
Join Date: Jul 2017
Location: Boston
Device: Kobo Libra 2
Quote:
Originally Posted by jgneff View Post
For what it's worth, a long time ago I had luck adding an exit hook to the DHCP response, as follows:

Code:
# /etc/dhcpcd.exit-hook - sets the host name from DHCP data
# In Ubuntu: /lib/dhcpcd/dhcpcd-hooks/30-hostname (dhcpcd5)
# Called by: /libexec/dhcpcd-run-hooks
if $if_up; then
    if [ -n "$new_host_name" ]; then
        hostname "$new_host_name"
    fi
fi
I wanted to set the host name as provided by my router in the DHCP response, but perhaps you could set the MAC address here instead.
Thanks. Does anyone know if the network/dhcp process flow for Kobo is documented somewhere? One concern I have with setting the MAC address there is that in order to force the MAC address, you need to bring the interface down first or you get an error.. and this hook seems to be one that is called when the interface is coming up? So is there a chance of an infinite loop?
ajkessel is offline   Reply With Quote
Old Today, 10:05 AM   #19
jgneff
Member
jgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the partyjgneff brings flavor and color to the party
 
jgneff's Avatar
 
Posts: 19
Karma: 147742
Join Date: Nov 2017
Location: Vancouver, BC, Canada
Device: Kobo Touch B/C, Kobo Glo HD, Kobo Clara HD, Kobo Libra 2
Quote:
Originally Posted by ajkessel View Post
One concern I have with setting the MAC address there is that in order to force the MAC address, you need to bring the interface down first or you get an error..
Right, the exit hook might be too late. I'm not sure when the enter hook is called, but perhaps that's an option. See dhcpcd-run-hooks.8 for more information.
jgneff is offline   Reply With Quote
Old Today, 01:49 PM   #20
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,654
Karma: 149865198
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Not to mention that if you change the MAC address after the DHCP address is received, the router will not consider it a valid address when the IP address to MAC address translation is done.
DNSB is offline   Reply With Quote
Reply

Tags
libra 2, wifi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change minimum brightness setting to 1% permanently? macd Kobo Reader 7 04-14-2023 03:03 PM
Change Kindle MAC Address? ccat526 Kindle Developer's Corner 3 11-20-2022 03:24 PM
Is there a way to permanently change the rgb on my kobo aura one, so they don't reset Griu Kobo Reader 0 02-23-2022 09:51 PM
Change K3 serial number and mac address. seaniko7 Kindle Developer's Corner 18 06-07-2014 07:17 AM
SmartQ 7 MAC address talaivan Alternative Devices 3 09-11-2009 09:24 AM


All times are GMT -4. The time now is 05:34 PM.


MobileRead.com is a privately owned, operated and funded community.