summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/tweaker/bin/twk_keymap.sh
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-02-10 02:49:15 (GMT)
committerBob Igo <bob@stormlogic.com>2009-02-10 02:49:15 (GMT)
commit3c23b95df42b8ec226ab4110364cd69a50b48b2b (patch)
treec3efc89feceb2110f9ae9f75c7f2425bc9995b87 /abs/core-testing/tweaker/bin/twk_keymap.sh
parentdcfc40ff3b29121365037a5ed0845bd64efb6c55 (diff)
downloadlinhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.zip
linhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.tar.gz
linhes_pkgbuild-3c23b95df42b8ec226ab4110364cd69a50b48b2b.tar.bz2
Tweaker integration progress.
Diffstat (limited to 'abs/core-testing/tweaker/bin/twk_keymap.sh')
-rwxr-xr-xabs/core-testing/tweaker/bin/twk_keymap.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/abs/core-testing/tweaker/bin/twk_keymap.sh b/abs/core-testing/tweaker/bin/twk_keymap.sh
index 41341bf..885594d 100755
--- a/abs/core-testing/tweaker/bin/twk_keymap.sh
+++ b/abs/core-testing/tweaker/bin/twk_keymap.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2007, 2008 Robert ("Bob") Igo of StormLogic, LLC and mythic.tv.
+# Copyright 2007-2009 Robert ("Bob") Igo of StormLogic, LLC and mythic.tv.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -60,15 +60,14 @@ chown -fR mythtv:mythtv $MYTH_HOME/.xine
#Make mplayer use keymappings that get along with xine, MythMusic, and ATI remote button mappings.
#NOTE: PGUP is PageUp and PGDWN is PageDown
-if [[ -f $MYTH_HOME/.mplayer/input.conf ]]; then
- sed -i "s/^PGUP .*/PGUP seek -60/" $MYTH_HOME/.mplayer/input.conf
- sed -i "s/^PGDWN .*/PGDWN seek +60/" $MYTH_HOME/.mplayer/input.conf
- sed -i "s/^p .*/p pause/" $MYTH_HOME/.mplayer/input.conf
- sed -i "s/^l .*/l pause/" $MYTH_HOME/.mplayer/input.conf
+if [[ -f /etc/mplayer/input.conf ]]; then
+ sed -i "s/^PGUP .*/PGUP seek -60/" /etc/mplayer/input.conf
+ sed -i "s/^PGDWN .*/PGDWN seek +60/" /etc/mplayer/input.conf
+ sed -i "s/^p .*/p pause/" /etc/mplayer/input.conf
+ sed -i "s/^l .*/l pause/" /etc/mplayer/input.conf
else
- mkdir -p $MYTH_HOME/.mplayer/
- /bin/cp $KNOPPMYTH_SHARE/mplayer_keymap $MYTH_HOME/.mplayer/input.conf
+ echo "ERROR: /etc/mplayer/input.conf is missing, which is unexpected."
+ exit -1
fi
-chown -fR mythtv:mythtv $MYTH_HOME/.mplayer
echo "Tweaked keymap" \ No newline at end of file