Skip to content

Commit 66a52b0

Browse files
committed
refactor(modprobe): deprecate in favor of upstream one in >= 35
There isn't an equivalent merged upstream, yet, so use "expected to" wording. Issue: #1246 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent 61a01e9 commit 66a52b0

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
@@ -269,7 +269,7 @@ bashcomp_DATA = 2to3 \
269269
mmsitepass \
270270
_mock \
271271
_modinfo \
272-
modprobe \
272+
_modprobe \
273273
_modules \
274274
monodevelop \
275275
_mount \

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

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ EXTRA_DIST = \
2323
mock \
2424
modinfo \
2525
modules \
26+
modprobe \
2627
mount \
2728
mount.linux \
2829
newgrp \

test/fallback/completions/modprobe

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

0 commit comments

Comments
 (0)