Issues loading a custom kernel module during boot

I have compiled a kernel module, say smartcam.ko . I want to load it automatically during boot. So I copied the module to /lib/modules/uname -r/kernel/drivers/media/ .
And I added the entries “/sbin/modprobe videodev” & “/sbin/insmod smartcam.ko” (as suggested by smartcam installation), to /etc/init.d/boot.local . Now I’m expecting the module smartcam.ko to be loaded during boot. Sadly it’s not happening. Any suggestions please?

Hi
You need to remove the entries you created and then add via YaST /etc/system editor under the kernel entry ‘Module to load at boot’

That’s assuming you checked the module worked via the modprobe command?

Thanks for you suggestion, i edited the /etc/sysconfig/kernel file. edited a line MODULES_LOADED_ON_BOOT=“videodev smartcam”. That worked.