pytoolbox.linux module¶
-
pytoolbox.linux.
get_kernel_config
(release=None, fail=True)[source]¶ Return a JSON string with the GNU/Linux Kernel configuration.
Example usage
>>> config = get_kernel_config(fail=False) >>> type(config) <class 'dict'> >>> not config or 'memory' in config True
Error handling:
>>> get_kernel_config('0.0.1-generic', fail=False) {}