Guest isambard Posted April 18, 2011 Report Posted April 18, 2011 Just wondering if anyone knows how to make a script that can be run by CW recovery that simply deletes a specified file on the data partition?
Guest t0mm13b Posted April 18, 2011 Report Posted April 18, 2011 Just wondering if anyone knows how to make a script that can be run by CW recovery that simply deletes a specified file on the data partition? try this: mount("yaffs2", "MTD", "userdata", "/data"); delete("/data/tmp/foobar"); unmount("/data"); The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory. HTH.,
Guest isambard Posted April 18, 2011 Report Posted April 18, 2011 try this: mount("yaffs2", "MTD", "userdata", "/data"); delete("/data/tmp/foobar"); unmount("/data"); The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory. HTH., Thanks. I will test it out.
Guest isambard Posted April 18, 2011 Report Posted April 18, 2011 try this: mount("yaffs2", "MTD", "userdata", "/data"); delete("/data/tmp/foobar"); unmount("/data"); The above script sample deletes a file called 'foobar' that resides in the /data/tmp directory. HTH., you should miss out the yaffs2 parameter, but other than that, it works great! :)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now