Skip to content

Instantly share code, notes, and snippets.

@coteyr
Last active December 20, 2015 02:09
Show Gist options
  • Save coteyr/6054831 to your computer and use it in GitHub Desktop.
Save coteyr/6054831 to your computer and use it in GitHub Desktop.
Launch Vendetta and Sync data to OUYA
#!/bin/bash
VENDETTA="/home/coteyr/.bin/vendetta"
OUYA='192.168.42.105'
# This launcher copies files from your OUYA and Computer to make things happy and in sync
# (basically), between the two systems. Data in the bindings file and config file
# can not be shared for obvious reasons. I might try to merge setings files at some
# point but it's much safer just to duplicate that work.
#
# To use, add your vendetta executable and your OUYA's IP addres in the lines above
# then launch this script instead of vendetta.
#
# REQUIRMENTS: adb installed in your path (apt-get install adb), zeity
# (apt-get install zenity) and wireless ADB access set up on you OUYA
# see http://forum.xda-developers.com/showthread.php?t=2272266 for enableing wireless
# ADB on your OUYA. Keep in mind you have to renable wireless ADB after every system
# updates (not vendetta updates, OUYA updates)
if zenity --question --text "Pull From OUYA"; then
cd $HOME/.vendetta/
adb connect $OUYA
adb pull /storage/sdcard0/Android/data/com.guildsoftware.vendetta/files/settings/ settings/
adb disconnect $OUYA
fi
$VENDETTA
if zenity --question --text "Push to OUYA"; then
cd $HOME/.vendetta/
adb connect $OUYA
sleep 0.5
adb push settings/ /storage/sdcard0/Android/data/com.guildsoftware.vendetta/files/settings/
adb disconnect $OUYA
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment