View Single Post
Old 12-06-2010, 08:06 AM   #2
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Quote:
Originally Posted by Wild Rat View Post
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)
You may have to remove the dot, but I don't know the dir that the command is called from.
Code:
rm -rf /mnt/us/autorun.* 
rm -rf /mnt/us/RECYCLER
Also, isn't the bigger problem that you have a virus? I don't think this would do anything very productive, because windows XP and higher versions ask you before running autorun.
yifanlu is offline   Reply With Quote