# 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

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

( cd usr/lib64 ; rm -rf libgstbasecamerabinsrc-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstbasecamerabinsrc-1.0.so.0.601.0 libgstbasecamerabinsrc-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstbadbase-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstbadbase-1.0.so.0.601.0 libgstbadbase-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstmpegts-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstmpegts-1.0.so.0.601.0 libgstmpegts-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstcodecparsers-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstcodecparsers-1.0.so.0.601.0 libgstcodecparsers-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstbadvideo-1.0.so )
( cd usr/lib64 ; ln -sf libgstbadvideo-1.0.so.0.601.0 libgstbadvideo-1.0.so )
( cd usr/lib64 ; rm -rf libgstbadvideo-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstbadvideo-1.0.so.0.601.0 libgstbadvideo-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstgl-1.0.so )
( cd usr/lib64 ; ln -sf libgstgl-1.0.so.0.601.0 libgstgl-1.0.so )
( cd usr/lib64 ; rm -rf libgstbadbase-1.0.so )
( cd usr/lib64 ; ln -sf libgstbadbase-1.0.so.0.601.0 libgstbadbase-1.0.so )
( cd usr/lib64 ; rm -rf libgstphotography-1.0.so )
( cd usr/lib64 ; ln -sf libgstphotography-1.0.so.0.601.0 libgstphotography-1.0.so )
( cd usr/lib64 ; rm -rf libgstphotography-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstphotography-1.0.so.0.601.0 libgstphotography-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgsturidownloader-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgsturidownloader-1.0.so.0.601.0 libgsturidownloader-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstgl-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstgl-1.0.so.0.601.0 libgstgl-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstinsertbin-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstinsertbin-1.0.so.0.601.0 libgstinsertbin-1.0.so.0 )
( cd usr/lib64 ; rm -rf libgstcodecparsers-1.0.so )
( cd usr/lib64 ; ln -sf libgstcodecparsers-1.0.so.0.601.0 libgstcodecparsers-1.0.so )
( cd usr/lib64 ; rm -rf libgstmpegts-1.0.so )
( cd usr/lib64 ; ln -sf libgstmpegts-1.0.so.0.601.0 libgstmpegts-1.0.so )
( cd usr/lib64 ; rm -rf libgstbasecamerabinsrc-1.0.so )
( cd usr/lib64 ; ln -sf libgstbasecamerabinsrc-1.0.so.0.601.0 libgstbasecamerabinsrc-1.0.so )
( cd usr/lib64 ; rm -rf libgsturidownloader-1.0.so )
( cd usr/lib64 ; ln -sf libgsturidownloader-1.0.so.0.601.0 libgsturidownloader-1.0.so )
( cd usr/lib64 ; rm -rf libgstadaptivedemux-1.0.so )
( cd usr/lib64 ; ln -sf libgstadaptivedemux-1.0.so.0.601.0 libgstadaptivedemux-1.0.so )
( cd usr/lib64 ; rm -rf libgstinsertbin-1.0.so )
( cd usr/lib64 ; ln -sf libgstinsertbin-1.0.so.0.601.0 libgstinsertbin-1.0.so )
( cd usr/lib64 ; rm -rf libgstadaptivedemux-1.0.so.0 )
( cd usr/lib64 ; ln -sf libgstadaptivedemux-1.0.so.0.601.0 libgstadaptivedemux-1.0.so.0 )
