Skip to content

Instantly share code, notes, and snippets.

@cmicali
Created June 10, 2013 14:59
Show Gist options
  • Save cmicali/5749395 to your computer and use it in GitHub Desktop.
Save cmicali/5749395 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
if [ -f "dist/kernel.tar.gz" ]
then
scp dist/kernel.tar.gz root@BeagleBoneBlack2:/home/root/kernel.tar.gz
ssh root@BeagleBoneBlack2 'tar xovfz ~/kernel.tar.gz -C /; sync;'
else
echo "You must run build.sh first"
exit -1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment