summaryrefslogtreecommitdiff
path: root/examples/hooks/ipw3945.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/ipw3945.sh')
-rwxr-xr-xexamples/hooks/ipw3945.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/hooks/ipw3945.sh b/examples/hooks/ipw3945.sh
new file mode 100755
index 000000000..04d235ba0
--- /dev/null
+++ b/examples/hooks/ipw3945.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# This is a hook for live-helper(7) to install ipw3945 drivers
+# To enable it, copy this hook into your config/chroot_local-hooks directory.
+
+# IMPORTANT: for apt-get to locate the required packages you need to
+# add "non-free" sections
+#
+# e.g with make-live : --sections "main non-free"
+
+# Updating indices
+apt-get update
+
+# Building kernel module
+which module-assistant || apt-get install --yes module-assistant
+module-assistant update
+module-assistant auto-install ipw3945 # interactive mode for now
+module-assistant clean ipw3945
+
+apt-get install ipw3945d firmware-ipw3945
+
+# hackish, autorun regulatory daemon, update-rc.d will reject that
+ln -s /etc/init.d/ipw3945d /etc/rc2.d/S19ipw3945d