summaryrefslogtreecommitdiffstats
path: root/core/rootfs/rootfs-stage31/data/inc/drm.functions
diff options
context:
space:
mode:
authorSimon Rettberg2018-09-12 16:19:11 +0200
committerSimon Rettberg2018-09-12 16:19:11 +0200
commit84452ded3f619c8f2b721baa170403379cfe1deb (patch)
tree3281b13b77cba4d8156655d4faf7b289b863e2b5 /core/rootfs/rootfs-stage31/data/inc/drm.functions
parent[nvidia_kernel] Fix broken path (diff)
downloadmltk-84452ded3f619c8f2b721baa170403379cfe1deb.tar.gz
mltk-84452ded3f619c8f2b721baa170403379cfe1deb.tar.xz
mltk-84452ded3f619c8f2b721baa170403379cfe1deb.zip
[rfs31] grepmod: Suppress filename output with grep
Since we're globbing now, grep will print the file name on match. This will lead to us trying to load a nonsensical module, which is not fatal but triggers an annoying error message before actually loading the proper module.
Diffstat (limited to 'core/rootfs/rootfs-stage31/data/inc/drm.functions')
-rw-r--r--core/rootfs/rootfs-stage31/data/inc/drm.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/drm.functions b/core/rootfs/rootfs-stage31/data/inc/drm.functions
index f4ca3af5..bbc7b7ad 100644
--- a/core/rootfs/rootfs-stage31/data/inc/drm.functions
+++ b/core/rootfs/rootfs-stage31/data/inc/drm.functions
@@ -1,7 +1,7 @@
grepmod () {
local line
- line=$( grep -i -m1 "^$1\\s" /drm.cfg.d/* )
+ line=$( grep -h -i -m1 "^$1\\s" /drm.cfg.d/* )
[ -z "$line" ] && return
echo ${line:${#1}}
}