OpenSDE Framework (without history before r20070)
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.

50 lines
1.3 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: target/early/initramfs/etc_mkinitramfs.d_50-kernel.sh.txt
  6. # Copyright (C) 2007 - 2011 The OpenSDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. . "$libdir/kernel.in"
  16. set -e
  17. if [ -n "$moddir" ]; then
  18. if [ "$running" ]; then
  19. echo "TODO: building on a running system, we can take the list of active modules."
  20. fi
  21. echo -n "Installing modules:"
  22. if [ -n "$MKINITRD_MODULES" ]; then
  23. for module in $MKINITRD_MODULES; do
  24. module_install "$module"
  25. done
  26. fi
  27. # greedy^3
  28. find $moddir/kernel/drivers/{block,ata,ide,ieee1394,md,scsi,cdrom,usb,message} \
  29. $moddir/kernel/{lib,fs} \
  30. -type f | while read file; do
  31. module_install "$file"
  32. done
  33. echo
  34. # USB hosts and old-style keyboards
  35. for x in {e,o,u}hci-hcd atkbd; do
  36. module_install "$x"
  37. done
  38. safe_depmod
  39. [ -z "$modules_missing" ] || echo "Failed to find:$modules_missing"
  40. fi