#!/bin/sh # --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: target/idunn/initramfs/etc_mkinitramfs.d_50-kernel.sh.txt # Copyright (C) 2008 - 2009 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- . $libdir/kernel.in set -e # has modules? if [ -z "$moddir" ]; then echo "INFO: kernel modules not supported." exit 0 else # run as `MKINITRD_MODULES="foo bar ..." mkinitramfs` to customize # for x in $MKINITRD_MODULES; do module_install "$x" done if [ -n "$running" ]; then module_list_running else # massive additions module_list_available | sed -n \ -e 's,/\(ide\|ieee1394\|cdrom\|scsi\|ata\|md\|block\|fs\|hid\|keyboard\|net\)/,\0,p' | grep -v '/\(netfilter\|ipvs\|wireless\|bluetooth\|nls\)/' # HCI echo {e,o,u}hci-hcd echo usb-storage echo nls_iso8859-1 nls_utf8 fi | tr ' ' '\n' | while read x; do module_install "$x" done echo fi safe_depmod [ -z "$modules_missing" ] || echo "ERROR: Kernel: Failed to find:$modules_missing"