#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

case "$DPKG_ARCH" in
powerpc|ppc64)
	# For PS3's we know these devices will exist, and we'll need them
	if grep -q PS3 /proc/cpuinfo; then
		# New style
		modprobe -Qb ps3disk
		modprobe -Qb ps3rom
		modprobe -Qb ps3-gelic

		# Old style
		modprobe -Qb ps3_storage
		modprobe -Qb gelic_net

		modprobe -Qb ohci-hcd
		modprobe -Qb ehci-hcd
		modprobe -Qb sys-manager
	fi
	;;
esac
