if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

( cd usr/bin ; rm -rf realplay )
( cd usr/bin ; ln -sf /opt/real/RealPlayer/realplay realplay )
( cd usr/lib/mozilla/plugins ; rm -rf nphelix.xpt )
( cd usr/lib/mozilla/plugins ; ln -sf /opt/real/RealPlayer/mozilla/nphelix.xpt nphelix.xpt )
( cd usr/lib/mozilla/plugins ; rm -rf nphelix.so )
( cd usr/lib/mozilla/plugins ; ln -sf /opt/real/RealPlayer/mozilla/nphelix.so nphelix.so )
( cd usr/share/applications ; rm -rf realplay.desktop )
( cd usr/share/applications ; ln -sf /opt/real/RealPlayer/share/realplay.desktop realplay.desktop )
( cd usr/share/pixmaps ; rm -rf realplay.png )
( cd usr/share/pixmaps ; ln -sf /opt/real/RealPlayer/share/realplay.png realplay.png )
( cd usr/doc/realplayer-11.0.2.2315 ; rm -rf README )
( cd usr/doc/realplayer-11.0.2.2315 ; ln -sf /opt/real/RealPlayer/README README )
( cd usr/doc/realplayer-11.0.2.2315 ; rm -rf LICENSE )
( cd usr/doc/realplayer-11.0.2.2315 ; ln -sf /opt/real/RealPlayer/LICENSE LICENSE )
