Cleanup help on mkstage4

This commit is contained in:
Eric Renfro 2024-08-03 15:31:13 -04:00
parent 7b94bae02f
commit 605d0ffea7
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -35,19 +35,23 @@ optSeperateKernel=false
function showHelp() {
echo "Usage:"
echo "$(basename "$0") [-b -c -k -l -q] [-C <type>] [-s || -t <target>] [-e <exclude*>] [-i <include>] <archivename> [-- [additional-tar-options]]"
echo "$(basename "$0") [-b -c -k -l -q] [-C <type>] [-s || -t <target>] [-e <exclude>...] [-i <include>...] <archive> [-- [tar-opts]]"
echo "Position Arguments:"
echo " <archive> archive name to create with optional path"
echo " [tar-opts] additional options to pass to tar command"
echo
echo "-b excludes boot directory"
echo "-c excludes some confidential files (currently only .bash_history and connman network lists)"
echo "-k separately save current kernel modules and src (creates smaller targetArchives and saves decompression time)"
echo "-l includes lost+found directory"
echo "-q activates quiet mode (no confirmation)"
echo "-C <type> specify tar compression (default: ${optCompressType}, available: ${!compressAvail[*]})"
echo "-s makes archive of current system"
echo "-t <path> makes archive of system located at the <path>"
echo "-e <exclude> an additional exclude directory (one dir one -e, do not use it with *)"
echo "-i <include> an additional include. This has higher precedence than -e, -t, and -s"
echo "-h display this help message."
echo "Options:"
echo " -b excludes boot directory"
echo " -c excludes some confidential files (currently only .bash_history and connman network lists)"
echo " -k separately save current kernel modules and src (creates smaller targetArchives and saves decompression time)"
echo " -l includes lost+found directory"
echo " -q activates quiet mode (no confirmation)"
echo " -C <type> specify tar compression (default: ${optCompressType}, available: ${!compressAvail[*]})"
echo " -s makes archive of current system"
echo " -t <path> makes archive of system located at the <path>"
echo " -e <exclude> an additional exclude directory (one dir one -e, do not use it with *)"
echo " -i <include> an additional include. This has higher precedence than -e, -t, and -s"
echo " -h display this help message."
if [[ "$1" -ge 0 ]]; then
exit "$1"
@ -106,6 +110,7 @@ while [[ $# -gt 0 ]]; do
shift # remove saved arg
done
# checks if run as root:
#if [[ "$(id -u)" -ne 0 ]]; then
# echo "$(basename "$0"): must run as root"