#!/bin/sh #DEBHELPER# #stop --quiet headphoned # FIXME: Ideally, this should make proper use of Upstart killall -q -SIGHUP headphoned 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