Projekte & Automatisierung

Howto Motion Snapshot

Snapshot auf NFS-Server speichern

Code:

mount -o remount,rw /system/sdcard
vi /system/sdcard/scripts/detectionOn.sh
-----------------------------------------------------------------------------------------------
/system/sdcard/bin/getimage > /system/sdcard/motion/stills/`date +%F-%H-%M-%S`.jpg
-----------------------------------------------------------------------------------------------
(at the end of the file!)
mount -o remount,r /system/sdcard
mkdir -p /system/sdcard/motion/stills
vi /system/sdcard/config/autostart/nfs
-----------------------------------------------------------------------------------------------
#!/bin/sh
mount -o nolock -t nfs NFS_SERVER_IP:/mnt/sda1 /system/sdcard/motion/stills
-----------------------------------------------------------------------------------------------
cp /system/sdcard/config/swap.conf.dist /system/sdcard/config/swap.conf
vi /system/sdcard/config/swap.conf
-----------------------------------------------------------------------------------------------
SWAP=true
-----------------------------------------------------------------------------------------------