summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash-completion b/bash-completion
index 0108863..559b2f3 100644
--- a/bash-completion
+++ b/bash-completion
@@ -1,6 +1,6 @@
#!/bin/bash
-detect_kver() {
+_detect_kver() {
local kver_validator='^[[:digit:]]+(\.[[:digit:]]+)+'
offset=$(hexdump -s 526 -n 2 -e '"%0d"' "$1" 2>/dev/null) || return 1
read kver _ < \
@@ -29,7 +29,7 @@ _find_kernel_versions() {
for f in /boot/*; do
# only match regular files which pass validation
- if [[ ! -L $f && -f $f ]] && kver=$(detect_kver "$f"); then
+ if [[ ! -L $f && -f $f ]] && kver=$(_detect_kver "$f"); then
matches+=("$f")
fi
done