Skip to content

Instantly share code, notes, and snippets.

/-

Created January 29, 2018 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9a56be09b8b0db4afbd53e074344bf8e to your computer and use it in GitHub Desktop.
Save anonymous/9a56be09b8b0db4afbd53e074344bf8e to your computer and use it in GitHub Desktop.
Usage Boot Info Script:
-----------------------
Run the script as sudoer:
sudo /usr/sbin/bootinfoscript <outputfile>
or if your operating system does not use sudo:
su -
/usr/sbin/bootinfoscript <outputfile>
When running the script, without specifying an output file, all the output
is written to the file "RESULTS.txt" in the same folder as the script.
But when run from /bin, /sbin, /usr/bin, or another system folder, the file
"RESULTS.txt" is written to the home directory of the user.
When the file "RESULTS.txt" already exists, the results will be written to
"RESULTS1.txt". If "RESULTS1.txt" exists, the results will be written to
"RESULTS2.txt", ...
To get version number, release date, last git commit and git retrieval date
of this script, use (no root rights needed):
/usr/sbin/bootinfoscript -v
/usr/sbin/bootinfoscript -V
/usr/sbin/bootinfoscript --version
To get this help text, use (no root rights needed):
/usr/sbin/bootinfoscript -h
/usr/sbin/bootinfoscript -help
/usr/sbin/bootinfoscript --help
To automatically gzip a copy of the output file, use (root rights needed):
/usr/sbin/bootinfoscript -g <outputfile>
/usr/sbin/bootinfoscript --gzip <outputfile>
To write the output to stdout instead of a file, use (root rights needed):
/usr/sbin/bootinfoscript --stdout
The last development version of Boot Info Script can be downloaded, with:
(no root rights needed)
/usr/sbin/bootinfoscript --update <filename>
If no filename is specified, the file will be saved in the home dir as
"bootinfoscript_YYYY-MM-DD_hh:mm:ss".
If multiple versions of Boot Info Script are detected in the same directory,
Boot Info Script will list all versions found.
In that case you need to force Boot Info Script to run a certain version,
by adding "--this" as first argument (root rights needed):
/usr/sbin/bootinfoscript --this <outputfile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment