diff options
| author | David Härdeman <david@hardeman.nu> | 2007-04-13 20:38:06 +0200 |
|---|---|---|
| committer | David Härdeman <david@hardeman.nu> | 2007-04-13 20:38:06 +0200 |
| commit | 3f94f7f380f1a5fe9afd7e20d0796365c2da25c3 (patch) | |
| tree | a3843ac6fd4b9c401ed5615aa21928fad8973b46 /scripts | |
| parent | 16fac6738535e973cfe1493f1b9b5c67c5150ffc (diff) | |
| download | initramfs-tools-3f94f7f380f1a5fe9afd7e20d0796365c2da25c3.tar.gz initramfs-tools-3f94f7f380f1a5fe9afd7e20d0796365c2da25c3.zip | |
Add PS3 module loading functionality.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/init-premount/ps3 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/init-premount/ps3 b/scripts/init-premount/ps3 new file mode 100755 index 0000000..1fe65ae --- /dev/null +++ b/scripts/init-premount/ps3 @@ -0,0 +1,28 @@ +#!/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 + modprobe ps3_storage + modprobe gelic_net + modprobe ohci-hcd + modprobe ehci-hcd + fi + ;; +esac |
