This is based on this article Transcend WIFI SD Hacks.
- autorun.sh (sd root)
Sets-up our environment. - config.sh (.custom)
Configuration settings.
- autoupload (.custom)
It is copied to/bin
. This script automatically uploads pictures to the configured server. Runs once on start-up. - busybox-armv5l (.custom)
Copied to/sbin
. Contains additionalbusybox
functionality.
- access.sh (.custom)
Starts background daemons if we are on trusted wireless nets. It is added to the/etc/dhcp.script
. - ntpd.sh (.custom)
- inst
This is a script used to copy working files to the sdcard.
This script will automatically upload files to an FTP server. The
server needs to be specially prepared. Specifically under the
ftp_path
directory you need to create sub-directories. The
sub-directories need to be in the form:
xx.xx.xx.xx.xx.xx
Where this is the MAC address of the WIFI card, in hex with dot (.) separators and lowercase.
This directory has to be writeable to the FTP user. Also, in that directory, there should be two empty files:
.state.0
.state.1
These files should also be writeable to the FTP user.
Configuring the client is through editing the file config.sh
.
Usage should be quite simple. Simply turn on the camera within the range of the trusted network. Thing should happen automatically.
Linux command to format SD card:
sudo mkdosfs -n C00LPIX -v /dev/sdb1
- document stop/resume and how we handle ungraceful shutdown
- include a status (uploading ... date ... etc)
- or, send an e-mail (or other notification) when it starts and ends.
Possible notification options:
- Telegram which has a CLI interface
- XMPP client and server
- IRC