Commit f65c5ab4 authored by a's avatar a
Browse files

updated README to include current state "automatic" command exec

parent df4e28b8
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -38,13 +38,17 @@ Then copy the resulting binary to the camera:

 - run on the computer:


	nc -l 1234 < hello


 - then run on the camera:


	nc 192.168.42.5 1234 > /tmp/hello && chmod +x /tmp/hello && /tmp/hello



# Running the script on Android (5.0+)

Install [Termux](https://wiki.termux.com/wiki/Main_Page) (from F-droid)
@@ -63,4 +67,24 @@ Connect to Wi-Fi, turn off mobile data and `./shoot.sh`

 - it would be nice to make dropbear and sftp server run on the camera for easier file exchange and command execution

some smarter automation than this would be nice
	( sleep 1; echo "root"; sleep 1; echo "cat /proc/cpuinfo"; sleep 1; ) | nc 192.168.42.1 23
	????????
	a12 login: root
	~ # cat /proc/cpuinfo
	processor       : 0
	model name      : ARMv7 Processor rev 1 (v7l)
	BogoMIPS        : 67.17
	Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls 
	CPU implementer : 0x41
	CPU architecture: 7
	CPU variant     : 0x4
	CPU part        : 0xc09
	CPU revision    : 1
	
	Hardware        : Ambarella S2L (Flattened Device Tree)
	Revision        : 0000
	Serial          : 0000000000000000


 - can we re-use an already pre-compiled repository of packages, e.g. from OpenWRT?