Created
January 30, 2016 06:51
-
-
Save agapovmax/60a2e9c224b29fa95db3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "${ylw}Спарить PS3 Bluetooth remote\n(y|n)?${rst}" | |
read btr | |
case "$btr" in | |
y) cd $PS3DIR | |
tar xvfz ps3pair.tar.gz | |
cd ps3pair | |
echo "${grn}Спариваем устройства...${rst}" | |
sudo python ps3_pair.py | |
#sudo bluez-test-input connect 00:24:33:A0:43:18 | |
sudo /usr/share/doc/bluez/examples/list-devices | grep Connected | |
sudo -k | |
echo "${grn}Копируем keyboard.xml...${rst}" | |
cp $PS3DIR/keyboard.xml /home/$USER/.kodi/userdata/keymaps/ -v;okfail | |
echo "${grn}Создаем резервную копию input.conf...${rst}" | |
sudo mv /etc/bluetooth/input.conf input.conf.bak;okfail | |
echo "${grn}Копируем свой input.conf...${rst}" | |
sudo cp $PS3DIR/input.conf /etc/bluetooth -v;okfail | |
cd ~;; | |
n) echo "${grn}Пропускаем...${rst}";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment