a guest May 26th, 2011 416 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Polls Toodles PC/PS3 Cthulhu controller, preventing it from entering XBox 360
- # mode. Run this script as root, then plug in the controller.
- echo "Please connect PC/PS3 Cthulhu now."
- # Loop indefinitely until Cthulhu controller is detected
- until [ -a $DEV_DIR/$DEV_NAME ]; do
- echo " - PC/PS3 Cthulhu detected. Ensuring connection..."
- # Have Cthulhu scream into the void for a couple of seconds to ensure connection
- cat $DEV_DIR/$DEV_NAME > /dev/null & CAT=$!
- sleep 2
- kill $CAT
- echo " - PC/PS3 Cthulhu connected!"
RAW Paste Data