aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init')
-rw-r--r--recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init b/recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init
new file mode 100644
index 0000000000..4efb52ec97
--- /dev/null
+++ b/recipes/obsolete/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh42/ipaq-hal.init
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# make sure update-modules has been run
+# since the calls below depend on aliases...
+if [ ! -f /etc/modules.conf ]; then
+ update-modules || true
+fi
+
+modprobe ipaq_hal || exit 0
+
+if [ -d /proc/hal ]; then
+ model=`cat /proc/hal/model`
+ modprobe ipaq_hal_$model
+fi