Advertisement
divingmule

update_xbox_dongle.sh

Sep 12th, 2012
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ## thanks and credit to mrplow - http://ubuntuforums.org/showpost.php?p=11422009&postcount=19
  4. ## run this script from the directory containing the lirc source directory
  5.  
  6. ## lets update the lirc sourc files
  7. rm -rfv lirc
  8. git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
  9.  
  10. ## uncomment if you don't already have the patch
  11. #wget http://old.nabble.com/attachment/31787507/0/lirc_0.9.1_lirc_xbox_driver.patch
  12.  
  13. ## apply the patch and configure the driver
  14. cd lirc/
  15. patch -p1 <../lirc_0.9.1_lirc_xbox_driver.patch
  16. sed -i '/smp_lock/ d' drivers/lirc_xbox/lirc_xbox.c
  17. ./autogen.sh
  18. ./configure -with-driver=userspace
  19.  
  20. ## make and install the driver then restart lirc
  21. cd drivers/lirc_xbox/
  22. make
  23.  
  24. {
  25.     trap "sudo -k" EXIT INT QUIT TERM
  26.     sudo make install
  27.     sudo service lirc restart
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement