Skip to content

Commit

Permalink
add lsmod-deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Nov 6, 2023
1 parent 0ee6d40 commit d6fa9f2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions man/lsmod-deterministic.8.ronn
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]).
9 changes: 9 additions & 0 deletions usr/bin/lsmod-deterministic
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

0 comments on commit d6fa9f2

Please sign in to comment.