I'm trying to load a program I wrote at boot. The program is also a module.ko and a small bash script. For the module I tried doing
depmod mymodule.ko and
modprobe -a and messing around with modprob libaries and .conf files without any success.
So, I wrapped it all (module and my executed program) in a bash script. I tried to load it at boot with rc.d. I failed this one too cause I think rc.d runs only executed files and not bash. If I'm right how do I change my bash file to an executed one? And install it in rc.d too? Is my strategy right?
Thank you all in advance :)
*working on Linux CentOS