Quote:
Originally Posted by Blossom
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/*