summaryrefslogtreecommitdiffstats
path: root/install/usbinput
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-05-04 10:43:48 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-05-04 10:43:48 +0200
commit830a2f97e258de184197737fef050dc13578b0dc (patch)
treeb3a6a1e5e95722163074bfcab1c04667afd86e33 /install/usbinput
parentcb07072558843db27776a4fa81012c7040d986db (diff)
downloadmkinitcpio-830a2f97e258de184197737fef050dc13578b0dc.tar.gz
mkinitcpio-830a2f97e258de184197737fef050dc13578b0dc.tar.xz
'added net and usbinput'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@59 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'install/usbinput')
-rw-r--r--install/usbinput23
1 files changed, 23 insertions, 0 deletions
diff --git a/install/usbinput b/install/usbinput
new file mode 100644
index 0000000..3a7196b
--- /dev/null
+++ b/install/usbinput
@@ -0,0 +1,23 @@
+# vim: set ft=sh:
+
+install ()
+{
+ MODULES=" $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl1811-hcd" -e "isp116x-hcd") "
+
+ MODULES=$(echo ${MODULES}) #trim whitespace
+ if [ "x${MODULES}" != "x" ]; then
+ MODULES="${MODULES} usbhid"
+ fi
+ BINARIES=""
+ FILES=""
+ SCRIPT=""
+}
+
+help ()
+{
+cat<<HELPEOF
+ This hook loads the necessary modules for an usb input device.
+ Detection will take place at runtime. To minimize the modules
+ in the image, add the autodetect hook too.
+HELPEOF
+}