# HG changeset patch # User Rohit Joshi # Date 1266841617 0 # Node ID 7677c6ea8e8581831bf04249b13d6060695b5329 # Parent 1941b0214dd4824c39cec6e398154943cefd7c58 auto render bootchart if pybootchartgui is installed diff -r 1941b0214dd4 -r 7677c6ea8e85 pybootchartgui/receipt --- a/pybootchartgui/receipt Mon Feb 22 16:31:06 2010 +0100 +++ b/pybootchartgui/receipt Mon Feb 22 12:26:57 2010 +0000 @@ -30,6 +30,9 @@ PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2` if [ -f $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui + if [ -f $root/etc/bootchartd.conf ] ; then + sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ $root/etc/bootchartd.conf + fi } post_remove() @@ -37,4 +40,7 @@ local root root=$1 rm $root/usr/bin/pybootchartgui + if [ -f $root/etc/bootchartd.conf ] ; then + sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ $root/etc/bootchartd.conf + fi }