Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2019, 08:26 PM   #1
pavel-s
Enthusiast
pavel-s began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Sep 2017
Device: PW3/4
Change Default TTL on PW4 permanenty? | OR where sysctl.conf

Hi,

I would like to change default TTL of PW4. When I connect to it via ssh and run:

Code:
sysctl net.ipv4.ip_default_ttl=65
It changes but until the next restart. After restarting the kindle the value is 64 again. What can be done in order to preserve it between reboots? It seems like sysctl.conf is the right place for it but it doesn't exist.
pavel-s is offline   Reply With Quote
Old 12-10-2019, 12:05 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
You can run a grep for sysctl in the init scripts, I *think* that's the job of one of them.

Or you can just plug that in a new custom one.
NiLuJe is offline   Reply With Quote
Advert
Old 12-10-2019, 02:36 AM   #3
Junket
Nil adsuetudine maius
Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.Junket ought to be getting tired of karma fortunes by now.
 
Junket's Avatar
 
Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
I can't improve upon NiLuJe's advice.

But for anyone who might pull this thread up in a future search:

Code:
sysctl net.ipv4.ip_default_ttl=65
would be a session only setting.


To effect a persistent change (at least on a nix box), you'd need to
append the setting to sysctl.conf:

/etc/sysctl.conf:
net.ipv4.ip_default_ttl=65

Comments on XDA say that you need to create sysctl.conf (on some android phones). So if it's not in an init script, it might work to:

touch /system/etc/sysctl.conf or
touch /sys/etc/sysctl.conf


Last edited by Junket; 12-10-2019 at 02:52 AM.
Junket is offline   Reply With Quote
Old 12-11-2019, 02:56 AM   #4
pavel-s
Enthusiast
pavel-s began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Sep 2017
Device: PW3/4
Quote:
Originally Posted by NiLuJe View Post
You can run a grep for sysctl in the init scripts, I *think* that's the job of one of them.

Or you can just plug that in a new custom one.
It seems like there are no scripts/configs on PW4 that use sysctl. Though, it gave me directions, thanks. Sometimes you know how to do something but don't do it until someone suggest you

Quote:
Originally Posted by Junket View Post
/etc/sysctl.conf
Creating /etc/sysctl.conf and adding net.ipv4.ip_default_ttl=65 to it didn't help. I haven't tried another paths though. Instead, I've just created default-ttl.conf inside /etc/upstart and added sysctl net.ipv4.ip_default_ttl=65 +another basic stuff that goes to /etc/upstart scripts. And it does the job.

Last edited by pavel-s; 12-11-2019 at 03:37 AM.
pavel-s is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default stylesheet name change MerlinMama Calibre 0 08-29-2019 08:23 AM
change default dictionary tempest@de Kobo Reader 39 04-16-2014 04:02 AM
What is the difference between framework.fiona.conf vs framework.mario.conf kocoman Kindle Developer's Corner 1 03-19-2013 09:40 AM
Connect Kindle 1 with TTL, can't boot.pls Help michaelyzy Kindle Developer's Corner 0 05-12-2010 02:25 AM
change default fonts p3aul Sigil 3 10-18-2009 07:14 PM


All times are GMT -4. The time now is 07:44 AM.


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