aboutsummaryrefslogtreecommitdiffstats
path: root/bin/mpc
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-04-09 14:38:16 +0200
committerDavid Runge <david.runge@frqrec.com>2014-04-09 14:38:16 +0200
commit3ccdb4ec9496959bd13e0f5abb0ef4b255cf4981 (patch)
tree5cedd95e9f37a830efc7c71acf3d8022f61c8a7a /bin/mpc
parentb51fef87be3df8f411ae5e223ce3d853ffcbc82a (diff)
downloaddotfiles-3ccdb4ec9496959bd13e0f5abb0ef4b255cf4981.tar.gz
dotfiles-3ccdb4ec9496959bd13e0f5abb0ef4b255cf4981.tar.bz2
dotfiles-3ccdb4ec9496959bd13e0f5abb0ef4b255cf4981.tar.xz
dotfiles-3ccdb4ec9496959bd13e0f5abb0ef4b255cf4981.zip
Removing useless executables
Diffstat (limited to 'bin/mpc')
-rw-r--r--bin/mpc38
1 files changed, 0 insertions, 38 deletions
diff --git a/bin/mpc b/bin/mpc
deleted file mode 100644
index cc85fd4..0000000
--- a/bin/mpc
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-file=/tmp/mpdhost
-
-if [ -e $file ]
-then
- mpdhost=$(cat $file)
-else
- case $(hostname) in
- "dvzrv")
- mpdhost=dvzrv
- ;;
- *)
- mpdhost=homey
- ;;
- esac
-fi
-
-case $1 in
- "switch")
- case "$mpdhost" in
- "dvzrv")
- mpdhost=homey
- ;;
- *)
- mpdhost=dvzrv
- ;;
- esac
- echo $mpdhost > $file
- echo switched to $mpdhost
- shift
- ;;
- "host")
- echo $mpdhost
- exit 0
- ;;
-esac
-
-/usr/bin/mpc -h $mpdhost "$@"