#!/bin/sh

patch -p0 << EOF
--- /vz/root/1/var/vzcp/xsl/screens/core/desktop/index.xsl.orig	2008-09-12 20:53:38.000000000 +0400
+++ /vz/root/1/var/vzcp/xsl/screens/core/desktop/index.xsl	2008-09-12 20:35:54.000000000 +0400
@@ -42,6 +42,9 @@
 		select="string(sw:param('vzcp-favorites-tab'))"/>
 
 	<xsl:template match="/">
+		<xsl:if test="sw:sesgetstr('toolbar-mode')=''">
+			<xsl:if test="sw:sesputstr('toolbar-mode', 'icontext')"/>
+		</xsl:if>
 		<ui:screen id="03.00.00.05.00" icon="desktop">
 			<ui:properties>
 				<ui:js-tail>
EOF

vzctl exec 1 service vzcp restart