code: def persistent_modprobe(module):
      
      with open('/etc/modules', 'r+') as modules:
          if module not in modules.read():
              modules.write(module + "\n")
docs: Load a kernel module and configure for auto-load on reboot.