Skip to content

Instantly share code, notes, and snippets.

@uechi-y
Created April 19, 2012 00:42
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 uechi-y/2417583 to your computer and use it in GitHub Desktop.
Save uechi-y/2417583 to your computer and use it in GitHub Desktop.
download dropbox cli and disable lansync
#!/bin/sh
# Dropbox CLI スクリプトをダウンロードして LAN sync を無効にする
# Dropbox CLI スクリプトをダウンロード
wget -O dropbox.py "https://www.dropbox.com/download?dl=packages/dropbox.py"
chmod +x dropbox.py
# LAN sync を無効にする
echo disable lansync
./dropbox.py running && ./dropbox.py start # dropbox が動いていないなら起動する
./dropbox.py lansync n
# スクリプトを利用しやすいように /usr/local/bin/dropbox として保存する
sudo mv dropbox.py /usr/local/bin/dropbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment