diff --git a/man/lsmod-deterministic.8.ronn b/man/lsmod-deterministic.8.ronn new file mode 100644 index 0000000..e23f9e1 --- /dev/null +++ b/man/lsmod-deterministic.8.ronn @@ -0,0 +1,27 @@ +lsmod-deterministic(8) -- Shows lsmod, sorted, deterministic +============================================= + + + +## 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 (adrelanos@whonix.org). diff --git a/usr/bin/lsmod-deterministic b/usr/bin/lsmod-deterministic new file mode 100755 index 0000000..7f79f07 --- /dev/null +++ b/usr/bin/lsmod-deterministic @@ -0,0 +1,9 @@ +#!/bin/bash + +## Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP +## See the file COPYING for copying conditions. + +set -e +set -o pipefail + +lsmod | tail -n +2 | cut -d ' ' -f 1 | sort