summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hooks/fw8
-rw-r--r--install/fw24
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
+}
+