Hello community, here is the log from the commit of package aaa_base checked in at Tue May 13 12:31:34 CEST 2008. -------- --- aaa_base/aaa_base.changes 2008-05-08 23:15:07.000000000 +0200 +++ /mounts/work_src_done/STABLE/aaa_base/aaa_base.changes 2008-05-09 14:22:58.000000000 +0200 @@ -1,0 +2,5 @@ +Fri May 9 14:16:59 CEST 2008 - olh@suse.de + +- enable swap to ps3vram in boot.swap + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aaa_base.spec ++++++ --- /var/tmp/diff_new_pack.mX4483/_old 2008-05-13 12:31:06.000000000 +0200 +++ /var/tmp/diff_new_pack.mX4483/_new 2008-05-13 12:31:06.000000000 +0200 @@ -21,7 +21,7 @@ PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv net-tools AutoReqProv: on Version: 11.0 -Release: 64 +Release: 66 Summary: SUSE Linux Base Package BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: aaa_base.tar.bz2 @@ -143,6 +143,8 @@ %defattr(-,root,root) %changelog +* Fri May 09 2008 olh@suse.de +- enable swap to ps3vram in boot.swap * Fri May 09 2008 werner@suse.de - Read status of /sys/kernel/kexec_loaded into a variable * Thu May 08 2008 aj@suse.de ++++++ aaa_base.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/aaa_base/etc/init.d/boot.swap new/aaa_base/etc/init.d/boot.swap --- old/aaa_base/etc/init.d/boot.swap 2008-02-19 17:10:51.000000000 +0100 +++ new/aaa_base/etc/init.d/boot.swap 2008-05-09 14:18:14.000000000 +0200 @@ -19,6 +19,7 @@ . /etc/rc.status . /etc/sysconfig/kernel + get_swap_id() { local line dev min type; type -p fdisk >/dev/null || return @@ -60,13 +61,33 @@ done < /etc/fstab } +enable_ps3_vram_swap () { + local prop + local ps3vram_swap=/dev/mtdblock0 + if test -f /proc/device-tree/model ; then + read prop < /proc/device-tree/model + case "$prop" in + SonyPS3) + echo "Activating swap to video ram" + modprobe -v ps3vram + modprobe -v mtdblock + sleep 1 + if test -b $ps3vram_swap ; then + mkswap -L ps3_vram_swap $ps3vram_swap + swapon -v -p 42 $ps3vram_swap + fi + ;; + esac + fi +} + rc_reset case "$1" in start) # # After mounting we may activate swap files in /etc/fstab - # .. this should work know with the new swapon behavio(u)r + # .. this should work now with the new swapon behavio(u)r # # Check for swap signature only if sysfs is not mounted # (then we have no way of knowing if swsuspend is enabled) @@ -74,6 +95,7 @@ if [ ! -d "/sys/devices" ] || [ -d "/sys/power" ]; then check_swap_sig fi + enable_ps3_vram_swap echo "Activating remaining swap-devices in /etc/fstab..." swapon -a &> /dev/null rc_status -v1 -r ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de