Skip to content

Commit c7213bd

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

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
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: 4 additions & 4 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 \
@@ -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

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ EXTRA_DIST = \
1313
gsctl \
1414
hexdump \
1515
hwclock \
16+
insmod \
1617
ionice \
1718
jungle \
1819
keyring \

test/fallback/completions/insmod

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

0 commit comments

Comments
 (0)