/usr/share/augeas/lenses/dist/sysctl.aug is in augeas-lenses 1.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | (*
Module: Sysctl
Parses /etc/sysctl.conf and /etc/sysctl.d/*
Author: David Lutterkort <lutter@redhat.com>
About: Reference
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
To be documented
About: Configuration files
This lens applies to /etc/sysctl.conf and /etc/sysctl.d/*. See <filter>.
About: Examples
The <Test_Sysctl> file contains various examples and tests.
*)
module Sysctl =
autoload xfm
(* Variable: filter *)
let filter = incl "/etc/sysctl.conf"
. incl "/etc/sysctl.d/*"
. excl "/etc/sysctl.d/README"
. excl "/etc/sysctl.d/README.sysctl"
. Util.stdexcl
(* View: comment *)
let comment = Util.comment_generic /[ \t]*[#;][ \t]*/ "# "
(* View: lns
The sysctl lens *)
let lns = (Util.empty | comment | Simplevars.entry)*
let xfm = transform lns filter
|