Re: [PATCH 23/31] Some dracut cleanups and bashification.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 08, 2009 at 04:36:25PM -0800, Victor Lowther wrote:
> +modcat="/lib/modules/$kernel/modules"
> +instmods() {
> +    local mod mpargs modpath modname cmd
> +    while (($# > 0)); do
> +	mod=${1%.ko}
> +	case $mod in
> +	    =ata) instmods $mpargs $(cat "${modcat}.block" |egrep 'ata|ahci');;

 grep(1) is smart enough to open and read files :-)

    $(egrep 'ata|ahci' "${modcat}.block")

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux