if [ -x usr/bin/mateconftool-2 ]; then
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/clock.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/fish.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/panel-compatibility.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/panel-general.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/panel-global.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/panel-object.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/panel-toplevel.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/window-list.schemas >/dev/null 2>&1
MATECONF_CONFIG_SOURCE="xml::etc/mateconf/mateconf.xml.defaults"    usr/bin/mateconftool-2 --makefile-install-rule    etc/mateconf/schemas/workspace-switcher.schemas >/dev/null 2>&1
fi

# use mate-panel default panel setting
mateconftool-2 --direct --config-source="xml::etc/mateconf/mateconf.xml.defaults" --load etc/mateconf/schemas/panel-default-setup.entries >/dev/null

# update rarian database
if [ -x usr/bin/rarian-sk-update ]; then
  usr/bin/rarian-sk-update 1> /dev/null 2> /dev/null
fi

# update mime database
if [ -x usr/bin/update-mime-database ]; then
  usr/bin/update-mime-database usr/share/mime 1> /dev/null 2> /dev/null
fi

# update desktop entries
if [ -x usr/bin/update-desktop-database ]; then
  usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
fi

# update hicolor icons
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
	rm -f usr/share/icons/hicolor/icon-theme.cache
fi
usr/bin/gtk-update-icon-cache -f -q usr/share/icons/hicolor 1>/dev/null 2>/dev/null

if [ -x /usr/bin/glib-compile-schemas ]; then
  /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas/ >/dev/null 2>&1
fi

# Restart gconfd-2 if running to reload new gconf settings
if ps acx | grep -q gconfd-2 ; then
        killall -HUP gconfd-2 ;
fi

# A good idea whenever kernel modules are added or changed:
if [ -x sbin/depmod ]; then
  /sbin/depmod -a 1> /dev/null 2> /dev/null
fi

( cd usr/lib ; rm -rf libmate-panel-applet-2.so )
( cd usr/lib ; ln -sf libmate-panel-applet-2.so.1.0.1 libmate-panel-applet-2.so )
( cd usr/lib ; rm -rf libmate-panel-applet-2.so.1 )
( cd usr/lib ; ln -sf libmate-panel-applet-2.so.1.0.1 libmate-panel-applet-2.so.1 )
( cd usr/lib ; rm -rf libmate-panel-applet-3.so )
( cd usr/lib ; ln -sf libmate-panel-applet-3.so.1.0.1 libmate-panel-applet-3.so )
( cd usr/lib ; rm -rf libmate-panel-applet-3.so.1 )
( cd usr/lib ; ln -sf libmate-panel-applet-3.so.1.0.1 libmate-panel-applet-3.so.1 )
( cd usr/share/mate/help/mate-applet-clock/da/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/da/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/en_GB/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/en_GB/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/fi/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/fi/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/oc/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/oc/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pa/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pa/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pt/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pt/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pt_BR/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/pt_BR/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/ru/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/ru/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/zh_HK/figures ; rm -rf clock_applet.png )
( cd usr/share/mate/help/mate-applet-clock/zh_HK/figures ; ln -sf ../../C/figures/clock_applet.png clock_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ca/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ca/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/cs/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/cs/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/de/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/de/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/el/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/el/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/en_GB/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/en_GB/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/es/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/es/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/eu/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/eu/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/fi/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/fi/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/fr/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/fr/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/it/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/it/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ja/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ja/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/oc/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/oc/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ru/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/ru/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/sv/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/sv/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/th/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/th/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/zh_CN/figures ; rm -rf fish_applet.png )
( cd usr/share/mate/help/mate-applet-fish/zh_CN/figures ; ln -sf ../../C/figures/fish_applet.png fish_applet.png )
