1
0
Fork 0

Merge pull request #457 from uniontech-lilinjie/tuned-adm-cmd

fix a few spelling errors in the manpage
This commit is contained in:
Jaroslav Škarvada 2022-09-07 00:46:59 +02:00 committed by GitHub
commit 6aceff7813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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=()