[Lunar-commits] <moonbase-core> kmod: simplified the depmod plugin
Stefan Wold
ratler at lunar-linux.org
Mon Sep 16 01:24:38 CEST 2013
commit 73e6c3509f96c26cc53c44562ffbcd8da49c4441
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun, 15 Sep 2013 10:25:00 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/73e6c3509f96c26cc53c44562ffbcd8da49c4441
kmod: simplified the depmod plugin
---
kernel/kmod/plugin.d/postbuild-depmod.plugin | +4/-6
1 file changed, 4 insertions(+), 6 deletions(-)
--- a/kernel/kmod/plugin.d/postbuild-depmod.plugin
+++ b/kernel/kmod/plugin.d/postbuild-depmod.plugin
@@ -16,12 +16,10 @@ plugin_depmod_post_build()
debug_msg "plugin_depmod_post_build ($@)"
# Find installed kernel modules and then run depmod
- if parse_iw | grep -q "^/lib/modules/.*/"; then
- while read kversion; do
- debug_msg "Running depmod for kernel $kversion"
- depmod -a $kversion
- done < <(parse_iw | grep "^/lib/modules/.*/" | awk -F/ '{ print $4 }' | sort | uniq)
- fi
+ parse_iw | grep "^/lib/modules/.*/" | cut -d/ -f4 | sort | uniq | while read kversion; do
+ debug_msg "Running depmod for kernel $kversion"
+ depmod -a $kversion
+ done
# We always return 2, fail or success
return 2
More information about the Lunar-commits
mailing list