Add support for pausing MPlayer
[headphoned] / debian / postrm
1 #!/bin/sh
2
3 #DEBHELPER#
4
5 CONFIG_LINE="input:file=\/etc\/headphoned\/mplayer-input"
6 MPLAYER_CONF="/etc/mplayer/mplayer.conf"
7
8 # Remove the headphoned "input" config option for MPlayer (if it exists)
9 if [ -f "$MPLAYER_CONF" ]; then
10         if grep "$CONFIG_LINE" "$MPLAYER_CONF" >/dev/null; then
11                 echo -n "Updating $MPLAYER_CONF... "
12                 sed -i -e "/$CONFIG_LINE/d" "$MPLAYER_CONF"
13                 echo "done."
14         fi
15 fi
16