3 Parses /etc/modules.conf and /etc/conf.modules
5 Based on the similar Modprobe lens
7 Not all directives currently listed in modules.conf(5) are currently
13 let comment = Util.comment
14 let empty = Util.empty
15 let eol = Util.eol | Util.comment
17 (* Basic file structure is the same as modprobe.conf *)
18 let sto_to_eol = Modprobe.sto_to_eol
19 let sep_space = Modprobe.sep_space
21 let path = [ key "path" . Util.del_str "=" . sto_to_eol . eol ]
22 let keep = [ key "keep" . eol ]
23 let probeall = Build.key_value_line_comment "probeall" sep_space
30 | Modprobe.kv_line_command /install|pre-install|post-install/
31 | Modprobe.kv_line_command /remove|pre-remove|post-remove/
37 let lns = (comment|empty|entry)*
39 let filter = (incl "/etc/modules.conf") .
40 (incl "/etc/conf.modules")
42 let xfm = transform lns filter