#!/bin/sh

#DEBHELPER#

CONFIG_LINE="input:file=\/etc\/headphoned\/mplayer-input"
MPLAYER_CONF="/etc/mplayer/mplayer.conf"

# Remove the headphoned "input" config option for MPlayer (if it exists)
if [ -f "$MPLAYER_CONF" ]; then
	if grep "$CONFIG_LINE" "$MPLAYER_CONF" >/dev/null; then
		echo -n "Updating $MPLAYER_CONF... "
		sed -i -e "/$CONFIG_LINE/d" "$MPLAYER_CONF"
		echo "done."
	fi
fi

