This is a nice article on getting OpenWRT running on a LogiLink WC0030A IP camera
https://blog.tho.ms/hacks/2016/08/28/openwrt-on-logilink-wc0030a.html
Running the motors is still iffy and audio doesn't work (yet), but it's worth checking out
I'll need to install a security camera system soon and it would be great if the whole stack from the DVR to the switch to the cameras themselves could run #OpenSource software