-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: resource for kernel config file
This file might be absent for different resasons: - disabled in kernel configuration - stored in a different location than the defautl one here (/boot/config-*) Signed-off-by: Alexandre Esse <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
id: kernel_config_file | ||
plugin: resource | ||
_summary: | ||
Kernel config file resource | ||
command: | ||
if [[ -f "/boot/config-$(uname -r)" ]] | ||
then | ||
echo "state: supported" | ||
else | ||
echo "state: unsupported" | ||
fi | ||
_description: Creates resource info for kernel config file |