Skip to content

Commit

Permalink
Tools updated
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Oct 10, 2015
1 parent b228913 commit 62d5cf7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions pyfispot
17 changes: 17 additions & 0 deletions raspberrypi/create_symlinks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# WARNING: this script creates symlinks for the file in this repo into
# the root tree of the RaspberryPi. There are some files (like
# sudoers) that doesn't work if it's a symlink.

# WARNING: this script should be ran with "sudo"

import os
import shutil


for root, dirnames, filenames in os.walk('etc'):
for f in filenames:
relative_path = os.path.abspath(os.path.join(root, f))
root_path = os.path.join('/', root, f)
print('Creating symlink for:', root_path)
shutil.move(root_path, root_path + '.bak')
os.symlink(relative_path, root_path)
7 changes: 0 additions & 7 deletions raspberrypi/home/pi/apps/pyfispot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
Flask==0.10.1
itsdangerous==0.24
jedi==0.9.0
Jinja2==2.8
Mako==1.0.2
MarkupSafe==0.23
Werkzeug==0.10.4
wheel==0.24.0
5 changes: 5 additions & 0 deletions utils/osm_maps_download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Download maps for OSMAnd for Android
wget -c "http://download.osmand.net/download.php?standard=yes&file=Peru_southamerica_2.obf.zip" -O Peru_southamerica_2.obf.zip
wget -c "http://download.osmand.net/download.php?standard=yes&file=Bolivia_southamerica_2.obf.zip" -O Bolivia_southamerica_2.obf.zip

0 comments on commit 62d5cf7

Please sign in to comment.