summaryrefslogtreecommitdiff
path: root/recipes/linux/files/ipaq-hal.init
blob: 4efb52ec972fed5b3fb2218f49484cb03ec44056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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