5 #stop --quiet headphoned
7 # FIXME: Ideally, this should make proper use of Upstart
8 killall -q -SIGHUP headphoned
10 CONFIG_LINE="input:file=\/etc\/headphoned\/mplayer-input"
11 MPLAYER_CONF="/etc/mplayer/mplayer.conf"
13 # Remove the headphoned "input" config option for MPlayer (if it exists)
14 if [ -f "$MPLAYER_CONF" ]; then
15 if grep "$CONFIG_LINE" "$MPLAYER_CONF" >/dev/null; then
16 echo -n "Updating $MPLAYER_CONF... "
17 sed -i -e "/$CONFIG_LINE/d" "$MPLAYER_CONF"