mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
561 B

  1. # we want our own cwd and environment. so we open a subshell
  2. (
  3. [ -d $mod_origin/kernel/ ] || exit
  4. MODTMP="$TMPDIR/modules-$k_ver"
  5. depmod -b $MODTMP $k_ver
  6. cd $MODTMP
  7. echo "dir /lib/modules 0755 0 0"
  8. echo "dir /lib/modules/$k_ver 0755 0 0"
  9. find lib/modules/$k_ver/{kernel,misc} -type d \
  10. | while read dir ; do
  11. echo "dir $dir 0755 0 0"
  12. find "$dir" -name \*.ko | while read ko ; do
  13. echo "file $ko `pwd`/$ko 0644 0 0"
  14. done
  15. done
  16. find lib/modules/$k_ver -maxdepth 1 -name modules.\* | while read x
  17. do
  18. echo "file $x `pwd`/$x 0644 0 0"
  19. done
  20. )