I put together a little script that will backup and restore the contents of the …/OSpi/data directory. This is necessary if you want to preserve your local settings when you update to a new version from GitHub. There have been two updates in the last couple of days, which is great!
I hope others will find it useful.
# Backup or restore the OSPi data files - D. Fox - 7/22/2013
# Adjust SRCDIR and BACKUPDIR as required
# Suggested installation:
# copy this script to /usr/local/bin/backup-ospi-data.sh
# cd /usr/local/bin
# ln -s backup-ospi-data.sh restore-ospi-data.sh
Keep in mind that with some updates it is only necessary to replace the ospi.py Python file and it is not necessary to backup and restore the config files.
In other updates there have been changes to various other files and it is best to do a full re-install. This will likely be the case when the parallel/sequential option is added.
I just discovered that it is easy to auto detect the Pi board rev and have implemented code to set the GPIO pin configuration automatically. This eliminates the need to manually edit the code tor use with Rev 1 boards.