F2 motion
From FON Wiki Beta
- The installation is made with opkg.
- /etc/opkg.conf must be edited to define a new source (add the following line at the beginning)
src snapshots http://downloads.openwrt.org/snapshots/fonera2/packages
- Note: In the fonera2 wiki, for amule installation, there are additional sources you can also try to use.
- update opkg list
opkg update
- To install motion:
opkg install motion
- usually, additional installations should be done in an external space, but as motion is so small, it can be installed in the internal memory.
take in consideration that /etc/motion.conf must be edited to your desired parameters (additional info in the motion homepage: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome)
- to run motion, just do:
motion
- to execute in the background:
motion > /tmp/motion.log 2>&1 & (will execute motion in the background and dump a log file to /tmp/motion.log
- to auto execute at boot time:
- create a /etc/init.d/motion file with:
#!/bin/sh /etc/rc.common
start(){
/usr/bin/motion > /tmp/motion.log 2>&1 &
}
- configure to auto-load at boot:
/etc/init.d/motion enable
