qosmio / nss-packages

QCA NSS Packages
GNU General Public License v2.0
76 stars 79 forks source link

replace insmod/rmmod with modprobe [-r] #20

Closed jkool702 closed 8 months ago

jkool702 commented 8 months ago

on my kernel-6.6.22 NSS build for a dynalink wrx36, I noticed that the qca-nss-* init scripts were failing to load the required kernel modules when I ran

service qca-nss-<...> [re]start

I went through the various /etc/init.d/qca-nss-* scripts and replaced all occurrences of insmod with modprobe and all occurrences of rmmod with modprobe -r. After this, the services could correctly load/unload the relevant qca-nss-* kmods.

Im not sure if this problem occurs on devices other than the dynalink wrx36, and my config has been customized enough Im not even sure if modprobe comes standard. But, this fix made things work right for me.