Package: initramfs-tools Severity: wishlist Version: 0.91e User: ubuntu-devel@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch hardy ubuntu Attached is a patch to update the ps3 script. This patch allows the supporting of old and new ps3 hardware configurations. The patch applies against git head.
diff -urN initramfs-tools/scripts/init-premount/ps3 initramfs-tools.new/scripts/init-premount/ps3
--- initramfs-tools/scripts/init-premount/ps3 2008-02-26 10:36:10.419676705 +1100
+++ initramfs-tools.new/scripts/init-premount/ps3 2008-02-26 13:43:53.571676705 +1100
@@ -17,15 +17,20 @@
case "$DPKG_ARCH" in
powerpc|ppc64)
- while read line; do
- if [ "${line}" != "${line#machine*PS3PF}" ]; then
- # For PS3's we know these devices will exist,
- # and that we'll need them
- modprobe ps3_storage
- modprobe gelic_net
- modprobe ohci-hcd
- modprobe ehci-hcd
- fi
- done < /proc/cpuinfo
+ # 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
Attachment:
signature.asc
Description: Digital signature