Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

kmod: simplified the depmod plugin

  • Loading branch information...
commit 73e6c3509f96c26cc53c44562ffbcd8da49c4441 1 parent 6a682dc
Stefan Wold Ratler authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 kernel/kmod/plugin.d/postbuild-depmod.plugin
10 kernel/kmod/plugin.d/postbuild-depmod.plugin
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.