[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#468113: PlayStation 3 script update.



On Wed, 27 Feb 2008, Luke Yelavich wrote:

> 
> 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.

okay.

> 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

no please grep is *not* assured to be on initramfs.
if you boot with BUSYBOX=n thus don't replace the readline 
part with grep that is useless.

also -Qb modprobe argument is ubuntu specific,
it shouldn't be used at all in the scripts,
but that in the start with MODPROBE_OPTIONS.

thanks tagging as pending as added the new style modprobe
to debian's initramfs.

-- 
maks



Reply to: