shutdownthumb copy the folder shutdownthumb to your machine 'cd' to that folder type 'sudo make install' The system will now be shutdown if a thumb drive is inserted which is labelled (or has a partition labelled) SHUTDOWNPI