Sorry for my english ^^"

I success to use the offical firmware ( to send mail to my gmail

But,I find a problem that the send mail alert wont stop sending mail ,no matter there is anything detected !!

So,I change my firmware to oleg and I find there is a ipkg call "motion" may help us to make a motion detect

$ipkg list motion
motion - 3.2.9-1 - a software motion detector

Can someone know how to make "motion" work?