-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part of Kicksecure/security-misc#159
- Loading branch information
Showing
2 changed files
with
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
lsmod-deterministic(8) -- Shows lsmod, sorted, deterministic | ||
============================================= | ||
|
||
<!-- | ||
# Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP <[email protected]> | ||
# See the file COPYING for copying conditions. | ||
--> | ||
|
||
## SYNOPSIS | ||
|
||
lsmod-deterministic | ||
|
||
## DESCRIPTION | ||
|
||
Runs lsmod, shows module names only, deterministic output. | ||
|
||
## RETURN VALUES | ||
|
||
Same as `lsmod`. | ||
|
||
## EXAMPLE | ||
|
||
`lsmod-deterministic` | ||
|
||
## AUTHOR | ||
|
||
This man page has been written by Patrick Schleizer ([email protected]). |
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,9 @@ | ||
#!/bin/bash | ||
|
||
## Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP <[email protected]> | ||
## See the file COPYING for copying conditions. | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
lsmod | tail -n +2 | cut -d ' ' -f 1 | sort |