From d6fa9f2a314764764c8270a54d6a93cbdbc942c9 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 5 Nov 2023 20:33:18 -0500 Subject: [PATCH] add `lsmod-deterministic` part of https://github.com/Kicksecure/security-misc/issues/159 --- man/lsmod-deterministic.8.ronn | 27 +++++++++++++++++++++++++++ usr/bin/lsmod-deterministic | 9 +++++++++ 2 files changed, 36 insertions(+) create mode 100644 man/lsmod-deterministic.8.ronn create mode 100755 usr/bin/lsmod-deterministic 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