Skip to content

Commit

Permalink
kmod: simplified the depmod plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Sep 15, 2013
1 parent 6a682dc commit 73e6c35
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions kernel/kmod/plugin.d/postbuild-depmod.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73e6c35

Please sign in to comment.