Skip to content

Commit 7679bbf

Browse files
committed
refactor(rmmod): deprecate in favor of upstream one in >= 34
Issue: #1246 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent c7213bd commit 7679bbf

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

completions/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bashcomp_DATA = 2to3 \
376376
_rg \
377377
ri \
378378
rmlist \
379-
rmmod \
379+
_rmmod \
380380
route \
381381
rpcdebug \
382382
rpm \

completions/rmmod renamed to completions/_rmmod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Linux rmmod(8) completion. -*- shell-script -*-
22
# This completes on a list of all currently installed kernel modules.
33

4+
# Use of this file is deprecated.
5+
# Upstream completion is available in kmod >= 34, use that instead.
6+
47
_comp_cmd_rmmod()
58
{
69
local cur prev words cword comp_args

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ EXTRA_DIST = \
3333
renice \
3434
repomanage \
3535
reptyr \
36+
rmmod \
3637
rfkill \
3738
rtcwake \
3839
ruff \

test/fallback/completions/rmmmod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../completions/_rmmod

0 commit comments

Comments
 (0)