Idunn is an small system aiming to give an early rescue/install environment with ssh support, making life easier when one doesn't have physical access to machine.
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.

54 lines
1.4 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: target/idunn/initramfs/etc_mkinitramfs.d_50-kernel.sh.txt
  6. # Copyright (C) 2008 - 2009 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. # has modules?
  18. if [ -z "$moddir" ]; then
  19. echo "INFO: kernel modules not supported."
  20. exit 0
  21. else
  22. # run as `MKINITRD_MODULES="foo bar ..." mkinitramfs` to customize
  23. #
  24. for x in $MKINITRD_MODULES; do
  25. module_install "$x"
  26. done
  27. if [ -n "$running" ]; then
  28. module_list_running
  29. else
  30. # massive additions
  31. module_list_available | sed -n \
  32. -e 's,/\(ide\|ieee1394\|cdrom\|scsi\|ata\|md\|block\|fs\|hid\|keyboard\|net\)/,\0,p' |
  33. grep -v '/\(netfilter\|ipvs\|wireless\|bluetooth\|nls\)/'
  34. # HCI
  35. echo {e,o,u}hci-hcd
  36. echo usb-storage
  37. echo nls_iso8859-1 nls_utf8
  38. fi | tr ' ' '\n' | while read x; do
  39. module_install "$x"
  40. done
  41. echo
  42. fi
  43. safe_depmod
  44. [ -z "$modules_missing" ] || echo "ERROR: Kernel: Failed to find:$modules_missing"