View Single Post
Old 12-03-2010, 12:02 PM   #1
Wild Rat
Junior Member
Wild Rat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Amazon Kindle 3 WiFi+3G
Kindle - viruss-free flashdrive.

In the file ./lib/udev/bin/notifyusb :

Code:
#!/bin/sh 
if [ "$ACTION" = "add" ] ; then 
   /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugIn 
else 
   if [ "$ACTION" = "remove" ] ; then 
      /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugOut 
      rm -rf ./mnt/us/autorun.* 
      rm -rf ./mnt/us/RECYCLER 
   else 
      if [ "$ACTION" = "online" ] ; then 
         /usr/bin/lipc-send-event -r 3 com.lab126.hal usbConfigured 
      else 
         if [ "$ACTION" = "offline" ] ; then 
            /usr/bin/lipc-send-event -r 3 com.lab126.hal usbUnconfigured 
         fi 
      fi 
   fi 
fi 

exit 0
i added this lines:

Code:
rm -rf ./mnt/us/autorun.* 
rm -rf ./mnt/us/RECYCLER
and now that the Kindle is removed, it automatically removes all the boot viruses from flash drive (Well, not all but the most extended ones)
Wild Rat is offline   Reply With Quote