Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-15-2012, 09:12 AM   #46
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 5,779
Karma: 5722276
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by wrm View Post
Oh, I have a pretty good idea of what touch does, thankyouverymuch :-)

And strangely enough, my man for touch doesn't mention the side effect of touch which is relevant here.

But the point is that the script looks for a directory (google* man bash) which obviously won't be there (you having renamed it) -- so what is the point of creating a regular file of the same name?

Anywayz, thanks geekmaster, that's sort of what I thought -- that something else is trying to force it back into ad-supported mode, and the file thwarts it. Except on my kindle it worked (and continues to work) without the file (5.0.4).

* if you don't have at least one instance of bash open on your desktop...
*nix nit ...
On the Kindle, you are not running Bash, you are running Ash.

On most distributions:
/bin/busybox ash
will get you an instance of the Ash command line shell.

(Most distributions have it installed because their "create initramfs" tools need it.)
knc1 is offline  
Old 06-15-2012, 09:32 AM   #47
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 5,779
Karma: 5722276
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by wrm View Post
And strangely enough, my man for touch doesn't mention the side effect of touch which is relevant here.
Second option listed:
Code:
       -c, --no-create
              do not create any files
(Rhetorical) Question: What happens if you do not include that option?
knc1 is offline  
Old 06-16-2012, 07:19 AM   #48
wrm
Junior Member
wrm began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2012
Location: Cape Town
Device: Kindle Touch
Within the framework of my question, the differences between bash, ash and sh are pretty much a red herring.
Quote:
(Rhetorical) Question: What happens if you do not include that option?

I think it's pretty obvious that we all know that a *FILE* is created, current time and date, zero size.

The script, whether you feed it to bash or ash, looks for a *DIRECTORY* and if said directory is present, starts the ad-support screensaver.

Hence my question, why create a *FILE*?

Not that it's important, mind. Idle curiosity and all of that.
wrm is offline  
Old 06-16-2012, 09:09 AM   #49
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 5,779
Karma: 5722276
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by wrm View Post
Hence my question, why create a *FILE*?
You did not include that specific question in your original post.
I.E: A better question will get you a better answer on any forum.
knc1 is offline  
Old 06-16-2012, 09:34 AM   #50
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,621
Karma: 1868895
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by wrm View Post
Hence my question, why create a *FILE*?
Since you can't create two file or directory with the same name in the same directory. ( Try on your PC)
thomass is online now  
Old 06-16-2012, 11:11 AM   #51
ixtab
0x2A
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677427
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by thomass View Post
Since you can't create two file or directory with the same name in the same directory. ( Try on your PC)
Just as a P.S., for completion / clarification: because a FILE with the given name already exists, that existing file can neither be read (=interpreted) as a DIRECTORY, nor can a directory with the same name be created.
ixtab is offline  
Old 06-16-2012, 12:46 PM   #52
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by thomass View Post
Since you can't create two file or directory with the same name in the same directory. ( Try on your PC)
Actually you can (sort of).

The USB drive is vfat, which is not sensitive to case, which means that "FILE.TXT" and "file.txt" should be the same file.

On my kindle with SSH, I created two files named file.txt and FILE.TXT. Both existed, and both were visible from windows, but good luck opening the second instance of what windows sees as the same filename.

Depending on what tool used, a windows disk repair tool would probably report that as an error.

I was able to delete this "file" from windows (twice).

This is actually a bug in the kindle. It should be smart enough to know that a vfat is not case sensitive.
geekmaster is offline  
Old 08-08-2012, 07:40 AM   #53
Selrond
Member
Selrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and TimeSelrond possesses cleverness exceeding the boundaries of Space and Time
 
Selrond's Avatar
 
Posts: 15
Karma: 49498
Join Date: Aug 2012
Device: Kindle Touch
Doesn`t work with 5.1.2 FW
Selrond is offline  
Old 01-23-2013, 08:36 PM   #54
briant1234
Enthusiast
briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.briant1234 substituted for the Southern Oracle when it was on vacation.
 
Posts: 39
Karma: 132550
Join Date: Aug 2012
Device: Kindle Touch
my ad randomly came back today, attempting to remove them again -.-
briant1234 is offline  
Old 01-23-2013, 08:47 PM   #55
ixtab
0x2A
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677427
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Moderator Notice

This topic is not condoned anymore; please refer to the forum policy.

Thread

Last edited by ixtab; 01-23-2013 at 08:52 PM.
ixtab is offline  
Closed Thread

Tags
k_touch, pathartl, remove ads, yifanlu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extended Linux Functionality - GUI Launcher Kindle Touch dasmoover Kindle Developer's Corner 41 02-11-2013 06:05 PM
K5 GUI Launcher for Kindle Touch yifanlu Kindle Developer's Corner 299 01-24-2013 01:59 PM
android launcher Mark.S Kobo Tablets 4 12-26-2011 05:11 PM
how to uninstall Go Launcher joshualintag Kindle Fire 1 11-22-2011 07:46 AM


All times are GMT -4. The time now is 02:41 AM.


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