Skip to content

Commit 36cbfc6

Browse files
authored
Merge pull request #1248 from evelikov/deprecate-kmod
Deprecate {ins,rm}mod and mod{info,probe}
2 parents 231a39d + 66a52b0 commit 36cbfc6

File tree

11 files changed

+28
-8
lines changed

11 files changed

+28
-8
lines changed

completions/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
/_incus
140140
/_infracost
141141
/inotifywatch
142-
/insmod.static
142+
/_insmod.static
143143
/iperf3
144144
/_istioctl
145145
/javac

completions/Makefile.am

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bashcomp_DATA = 2to3 \
181181
info \
182182
inject \
183183
inotifywait \
184-
insmod \
184+
_insmod \
185185
installpkg \
186186
interdiff \
187187
invoke-rc.d \
@@ -268,8 +268,8 @@ bashcomp_DATA = 2to3 \
268268
mktemp \
269269
mmsitepass \
270270
_mock \
271-
modinfo \
272-
modprobe \
271+
_modinfo \
272+
_modprobe \
273273
_modules \
274274
monodevelop \
275275
_mount \
@@ -376,7 +376,7 @@ bashcomp_DATA = 2to3 \
376376
_rg \
377377
ri \
378378
rmlist \
379-
rmmod \
379+
_rmmod \
380380
route \
381381
rpcdebug \
382382
rpm \
@@ -688,7 +688,7 @@ CLEANFILES = \
688688
_incus \
689689
_infracost \
690690
inotifywatch \
691-
insmod.static \
691+
_insmod.static \
692692
iperf3 \
693693
_istioctl \
694694
javac \
@@ -1108,8 +1108,8 @@ symlinks: $(DATA)
11081108
pinfo
11091109
$(ss) inotifywait \
11101110
inotifywatch
1111-
$(ss) insmod \
1112-
insmod.static
1111+
$(ss) _insmod \
1112+
_insmod.static
11131113
$(ss) iperf \
11141114
iperf3
11151115
$(ss) java \

completions/insmod renamed to completions/_insmod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Linux insmod(8) completion -*- shell-script -*-
22

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

completions/modinfo renamed to completions/_modinfo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Linux modinfo(8) completion -*- shell-script -*-
22

3+
# Use of this file is deprecated.
4+
# Upstream completion is expected to be available in kmod >= 35, use that instead.
5+
36
_comp_cmd_modinfo()
47
{
58
local cur prev words cword was_split comp_args

completions/modprobe renamed to completions/_modprobe

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Linux modprobe(8) completion -*- shell-script -*-
22

3+
# Use of this file is deprecated.
4+
# Upstream completion is expected to be available in kmod >= 35, use that instead.
5+
36
_comp_cmd_modprobe()
47
{
58
local cur prev words cword was_split comp_args

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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ EXTRA_DIST = \
1313
gsctl \
1414
hexdump \
1515
hwclock \
16+
insmod \
1617
ionice \
1718
jungle \
1819
keyring \
1920
kontena \
2021
look \
2122
mdbook \
2223
mock \
24+
modinfo \
2325
modules \
26+
modprobe \
2427
mount \
2528
mount.linux \
2629
newgrp \
@@ -32,6 +35,7 @@ EXTRA_DIST = \
3235
renice \
3336
repomanage \
3437
reptyr \
38+
rmmod \
3539
rfkill \
3640
rtcwake \
3741
ruff \

test/fallback/completions/insmod

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

test/fallback/completions/modinfo

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

test/fallback/completions/modprobe

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

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)