Quote:
Originally Posted by Wild Rat
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.