#!/bin/sh

mv /usr/bin/xmms /usr/bin/xmms.bin
ln -s /usr/share/xmms/xmms-wrapper.sh /usr/bin/xmms
subst 's|COMMAND="/usr/bin/soundwrapper /usr/bin/xmms"|COMMAND="/usr/bin/soundwrapper /usr/bin/xmms.bin"|' /usr/share/xmms/xmms-wrapper.sh
subst 's|autocharset_fs=$AUTOCHARSET|autocharset_fs=$AUTOCHARSET\noutput_plugin=/usr/lib/xmms/Output/libOSS.so\n|' /usr/share/xmms/xmms-wrapper.sh