#!/ffp/bin/sh

if [ "$1" = "start" ]; then
	echo "A motion inditasa..."
        depmod -a
        modprobe uvcvideo
        /i-data/md0/build/MAKEDEV
	motion -b
	echo "Kesz! :)"
fi
if [ "$1" = "stop" ]; then
	echo "A motion leallitasa..."
	kill -9 `cat /var/run/motion/motion.pid`
	echo "Leallitva!"
fi
