summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-02-27 00:20:17 +0100
committermaximilian attems <maks@debian.org>2006-02-27 00:20:17 +0100
commit830fd3fa51658cf0398cbb037a8485439ae4ce2d (patch)
tree7f074e4f4d39f782def3c1ea14106339a16f3ff2 /hook-functions
parenta563d25cc42346ba18a43c2a37896316c245d922 (diff)
sync with ubuntu22 + some handmerges
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions59
1 files changed, 34 insertions, 25 deletions
diff --git a/hook-functions b/hook-functions
index bb44d9e..51e0a8d 100644
--- a/hook-functions
+++ b/hook-functions
@@ -136,31 +136,40 @@ dep_add_modules()
# Modules that we always add to the initramfs
auto_add_modules()
{
- # base
- for x in ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 ext3 isofs jfs nfs reiserfs xfs af_packet atkbd i8042; do
- manual_add_modules "${x}"
- done
-
- # Ethernet
- for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx dl2k e1000 e100 epic100 eql fealnx famachi forcedeth hp100 mace mv643xx_eth natsemi ne2k-pci netconsole ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire sundance sungem sungem_phy sunhme tg3 tlan de2104x de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb typhon via-rhine via-velocity yellowfin; do
- manual_add_modules "${x}"
- done
-
- # ide
- for x in ide-cd ide-disk ide-generic aec62xx alim15x3 amd74xx atiixp atuuxo cmd64x cs5520 cs5530 cy82c693 generic hpt34x hpt366 ns87415 opti621 pdc202xx_new pdc202xx_old piix rz1000 sc1200 serverworks siimage sis5513 slc82c105 slc90e66 triflex trm290 via82cxxx; do
- manual_add_modules "${x}"
- done
-
- # scsi
- for x in 3w-9xxx 3w-xxxx a100u2x aacraid advansys ahci aic79xx aic7xxx ata_piix atari_scsi atp870u BusLogic cciss ch dc395x dmx3191d dpt_i2o eata fdomain ibmvscsic initio ipr ips isp1020 lpfc max_scsi mac53c94 megaraid megaraid_mbox megaraid_mm mesh mptscsih mptspi nsp32 osst qla1280 qla2100 qla2200 qla2300 qla2322 qla2xxx qla6312 qlogicfas408 qlogicfc sata_promise sata_nv sata_qstor sata_sil sata_sis sata_svw sata_sx4 sata_uli sata_via sata_vsc scsi_mod scsi_transport_fc scsi_transport_iscsi scsi_transport_spi sd_mod sym53c8xx tmscsim; do
- manual_add_modules "${x}"
- done
-
- # i2o
- for x in i2o_block; do
- manual_add_modules "${x}"
- done
-
+ case "$1" in
+ base)
+ for x in ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 ext3 isofs jfs nfs reiserfs xfs af_packet atkbd i8042; do
+ manual_add_modules "${x}"
+ done
+ ;;
+ net)
+ for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx dl2k e1000 e100 epic100 eql fealnx famachi forcedeth hp100 mace mv643xx_eth natsemi ne2k-pci netconsole ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire sundance sungem sungem_phy sunhme tg3 tlan de2104x de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb typhon via-rhine via-velocity yellowfin; do
+ manual_add_modules "${x}"
+ done
+ ;;
+ ide)
+ for x in ide-cd ide-disk ide-generic aec62xx alim15x3 amd74xx atiixp atuuxo cmd64x cs5520 cs5530 cy82c693 generic hpt34x hpt366 ns87415 opti621 pdc202xx_new pdc202xx_old piix rz1000 sc1200 serverworks siimage sis5513 slc82c105 slc90e66 triflex trm290 via82cxxx; do
+ manual_add_modules "${x}"
+ done
+ ;;
+ scsi)
+ for x in 3w-9xxx 3w-xxxx a100u2x aacraid advansys ahci aic79xx aic7xxx ata_piix atari_scsi atp870u BusLogic cciss ch dc395x dmx3191d dpt_i2o eata fdomain ibmvscsic initio ipr ips isp1020 lpfc max_scsi mac53c94 megaraid megaraid_mbox megaraid_mm mesh mptscsih mptspi nsp32 osst qla1280 qla2100 qla2200 qla2300 qla2322 qla2xxx qla6312 qlogicfas408 qlogicfc sata_promise sata_nv sata_qstor sata_sil sata_sis sata_svw sata_sx4 sata_uli sata_via sata_vsc scsi_mod scsi_transport_fc scsi_transport_iscsi scsi_transport_spi sd_mod sym53c8xx tmscsim; do
+ manual_add_modules "${x}"
+ done
+ ;;
+ i2o)
+ for x in i2o_block; do
+ manual_add_modules "${x}"
+ done
+ ;;
+ *)
+ auto_add_modules base
+ auto_add_modules net
+ auto_add_modules ide
+ auto_add_modules scsi
+ auto_add_modules i2o
+ ;;
+ esac
}
usage()