Skip to content

Instantly share code, notes, and snippets.

@lepinkainen
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lepinkainen/9186395 to your computer and use it in GitHub Desktop.
Save lepinkainen/9186395 to your computer and use it in GitHub Desktop.
Start dropbox in a shell if it's not running
# 1) install dropbox in a shell using the instructions provided here
# https://www.dropbox.com/install?os=linux
# 2) install the cli script as ~/bin/dropbox
# https://www.dropbox.com/download?dl=packages/dropbox.py
# 3) add the following to your .bash_profile
# start dropbox on login if it's not running
if [ -f ~/bin/dropbox ]; then
~/bin/dropbox running
if [ $? -ne 0 ]; then
echo "Dropbox running"
else echo "Dropbox not running, starting it"
~/bin/dropbox start
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment