Permalink
Browse files

api: leverage gnu find's -printf flag

  • Loading branch information...
1 parent 1e3e93d commit 29583f31ab18fe6ef5ebb9475669545f2106d069 @falconindy committed Jun 9, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 geninit.api
View
@@ -218,9 +218,8 @@ add_checked_modules() { # {{{
# find modules by class (e.g. drivers/ata)
pushd "$basedir$moduledir/kernel" &>/dev/null
while read -rd '' mod; do
- mod=${mod##*/}
mods+=("${mod%%.*}")
- done < <(find "$@" -type f -name '*.ko*' -print0 2>/dev/null)
+ done < <(find "$@" -type f -name '*.ko*' -printf '%f\0' 2>/dev/null)
popd &>/dev/null
# only add what autodetect found if we have a module cache

0 comments on commit 29583f3

Please sign in to comment.