View Single Post
Old 10-23-2012, 10:56 AM   #130
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
blacklist the update. I seem to recall this can be done somehow for the 3. I don't know how. Niluje might?


here is some alternate options:
Spoiler:
you could also simply hack and slash:

/etc/updater.conf (pictured in full with the extra amend at the end)

I changed:

PHP Code:
# Returns battery in percent. Integer, % sign stripped off
get_batt_percent() {
#    return `gasgauge-info -s | sed 's/\%//'`
    
[B]return 14[/B]

as it checks for 15 the update should never install. Totally untested but that is certainly one option (was my first look in the scripts)

you could also block ip's, Amend services, point services to localhost and a whole other list of options.

If you just want to stop OTA updates dead - then this should work. Did I say it was untested?

might want to check it is ACTUALLY 14 and not '14' that needs returning... I'm not sure tbh. I think without the quotes:
[root@kindle /dev]# gasgauge-info -s
95%

Another option would be:

add the entry
127.0.0.1 todo-g7g.amazon.com
to /etc/hosts:
This has other side effects though that may not be desirable.



Probably the easiest is:

Change 15 to 101

Quote:
# Minimum battery required for an update (percent)
_MIN_BATT=101
: )

Okay testing this now: restarting framework now ! EEk

Well, my kindle didn't explode on a restart with the 101 in place.
And I don't even need to test if that works. because it just has to.

Sorted. there are prettier ways but that would do the job of nerfing the updates anyway
Attached Thumbnails
Click image for larger version

Name:	Selection_288.png
Views:	56
Size:	95.8 KB
ID:	94740  

Last edited by twobob; 10-23-2012 at 11:21 AM. Reason: ACTUALLY[B] 14 [/B]and not [B]'14'[/B]
twobob is offline   Reply With Quote