#!/bin/sh /etc/rc.common # Example script # Copyright (C) 2007 OpenWrt.org START=10 STOP=15 start() { echo start # commands to launch application /etc/init.d/network start; sleep 5; /etc/init.d/dropbear start; sleep 5; cd /tmp; motion -c /etc/motion.conf } stop() { echo stop # commands to kill application }