View Single Post
Old 07-13-2016, 06:24 AM   #434
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by eschwartz View Post
knc1,

Why a udev rule? What is wrong with `while true; do touch /media/Kindle/DO_FACTORY_RESTORE; done`?
Anyway, what does the udev rule do if the filesystem isn't mounted yet (which isn't instantaneous, and therefore will probably be a genuine problem)?
The loop is very often fast enough.

The udev rule is faster, more certain and those also 'fire' when a file system is mounted (detected) not just when the hardware bus changes.
But there could be distribution differences that would prevent a 'universal' solution.

Maybe someone could post a version of that loop for Chinese-Windows.
That is where many people have boot-loop'd PW3W devices.
knc1 is offline   Reply With Quote