diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-10 17:52:22 +0200 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-10 17:52:22 +0200 |
commit | e18d03df946daab43ba02d3b072075f731ff5bee (patch) | |
tree | 735850a197d4a6318313903794396b95ecf835ad | |
parent | 5285caea84fe71dc0856631583df030a7405c44c (diff) | |
download | mkinitcpio-e18d03df946daab43ba02d3b072075f731ff5bee.tar.gz mkinitcpio-e18d03df946daab43ba02d3b072075f731ff5bee.tar.xz |
'added fw stuff'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@92 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r-- | hooks/fw | 8 | ||||
-rw-r--r-- | install/fw | 24 |
2 files changed, 32 insertions, 0 deletions
diff --git a/hooks/fw b/hooks/fw new file mode 100644 index 0000000..576980a --- /dev/null +++ b/hooks/fw @@ -0,0 +1,8 @@ +# vim: set ft=sh: +run_hook () +{ + #if we have to root delay, default to 5 seconds + # this will be handled by kinit and/or the + # filesystems hook + export rootdelay=${rootdelay:-5} +} diff --git a/install/fw b/install/fw new file mode 100644 index 0000000..f5ea726 --- /dev/null +++ b/install/fw @@ -0,0 +1,24 @@ +# vim: set ft=sh: + +install () +{ + MODULES=" $(checked_modules "/ieee1394/") " + + MODULES=$(echo ${MODULES}) #trim whitespace + if [ "x${MODULES}" != "x" ]; then + MODULES="${MODULES} sbp2 sd_mod sr_mod" + fi + BINARIES="" + FILES="" + SCRIPT="fw" +} + +help () +{ +cat<<HELPEOF + This hook loads the necessary modules for a firewire root device. + Detection will take place at runtime. To minimize the modules + in the image, add the autodetect hook too. +HELPEOF +} + |