#!/bin/sh if [ "$1" == "" ]; then echo -e "welcome to: cmd \n" echo -e "arg can be:" echo -e "jpeg <-n>\n Note: -n denotes no header" echo -e "video " echo -e "audio " echo -e "move " echo -e "waitMotion (you must enable motion tagging in the app first)" echo -e "irled " echo -e "aplay " echo -e "curlDebug on, off, disable_video" echo -e "mp4write (t31 only)" echo -e "timelapse " else echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000 fi