From d9d17e53c66a31a0bec523b10a6f0c780ef0b273 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 15 Aug 2022 18:41:24 +0800 Subject: [PATCH] fix a few spelling errors in the manpage Signed-off-by: root --- man/tuned.8 | 2 +- tuned-adm.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/tuned.8 b/man/tuned.8 index ba7b95d..58795f4 100644 --- a/man/tuned.8 +++ b/man/tuned.8 @@ -51,7 +51,7 @@ Do not attach to DBus. Write process ID to the \fBPID\fP file. If no \fIPID\fP file is specified \fB/run/tuned/tuned.pid\fP is used. .TP 12 .BI \-p "\fR \fP" \fIPROFILE\fP "\fR, \fP" \-\-profile "\fR \fP" \fIPROFILE\fP -Tunning profile to be activated. It will override other settings (e.g. from \fBtuned-adm\fP). +Tuning profile to be activated. It will override other settings (e.g. from \fBtuned-adm\fP). This is intended for debugging purposes. .TP 12 .BI \-v "\fR, \fP" \-\-version diff --git a/tuned-adm.bash b/tuned-adm.bash index a644f04..a4e6075 100644 --- a/tuned-adm.bash +++ b/tuned-adm.bash @@ -8,7 +8,7 @@ _tuned_adm() if [[ "$cword" -eq 1 ]]; then COMPREPLY=( $(compgen -W "$commands" -- "$cur" ) ) - elif [[ "$cword" -eq 2 && "$prev" == "profile" ]]; then + elif [[ "$cword" -eq 2 && ("$prev" == "profile" || "$prev" == "profile_info") ]]; then COMPREPLY=( $(compgen -W "$(command find /usr/lib/tuned /etc/tuned -mindepth 1 -maxdepth 1 -type d -printf "%f\n")" -- "$cur" ) ) else COMPREPLY=()