2 Buildfixes
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / probecntrl.sh
CommitLineData
9607771a
MT
1#!/bin/sh
2
330345c2
MT
3echo "Probing for storage controllers"
4for MODULE in $(hwinfo --usb --usb-ctrl --storage-ctrl | grep modprobe | awk '{ print $5 }' | tr -d \" | sort | uniq); do
5 if [ "${MODULE}" = "piix" ]; then
6 continue
7 fi
8 if grep -Eqe "^${MODULE} " /proc/modules; then
9 MODULES="${MODULES} --with=${MODULE}"
10 echo "Found: ${MODULE}"
11 fi
12done
9607771a 13
330345c2
MT
14if [ -z "${MODULES}" ]; then
15 exit 1
16else
17 echo "${MODULES}" > /tmp/cntrldriver
9607771a
MT
18 exit 0
19fi