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 <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html