View Single Post
Old 07-26-2010, 03:09 AM   #47
Dave_S
What Title ?
Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.
 
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
Quote:
Originally Posted by Blossom View Post
Could you make a script to delete the files in the Restore_PC folder?
The script below will clear the CoolReader cache and Restore_PC on both main memory AND the SD card. I added comments (##) to each line so that you know what each line does, in case you want to remove anything. You MUST use a Unix aware text editor like Notepad++ to copy the code below into a Unix text file. If a PC text editor like Notepad is used the script will not run, because Unix and Windows have different line ending conventions.

Code:
#!/bin/sh
## Clear the CoolReader cache on the SD card
rm -rf /mnt/crengine/.cache/*
## Clear the CoolReader cache in the onboard storage
rm -rf /home/crengine/.cache/*
## Clear Restore_PC on the SD card
rm -rf /mnt/Restore_PC/*
## Clear Restore_PC in the onboard storage
rm -rf /home/Restore_PC/*
Dave_S is offline   Reply With Quote