diff options
Diffstat (limited to 'recipes/linux/files/ipaq-hal.init')
-rw-r--r-- | recipes/linux/files/ipaq-hal.init | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/linux/files/ipaq-hal.init b/recipes/linux/files/ipaq-hal.init new file mode 100644 index 0000000000..4efb52ec97 --- /dev/null +++ b/recipes/linux/files/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 |