diff options
Diffstat (limited to 'abs/core-testing/tweaker/bin/twk_keymap.sh')
-rwxr-xr-x | abs/core-testing/tweaker/bin/twk_keymap.sh | 17 |
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 |