Created
August 27, 2010 16:29
-
-
Save fapestniegd/553683 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| # redrat3 on Debian 5.0.4 (lenny) | |
| apt-get install -y cvs build-essential dialog automake libtool help2man \ | |
| libx11-dev expect linux-headers-$(uname -r) | |
| TMPDIR=$(mktemp -d /tmp/redrat-lirc.XXXX) | |
| cd ${TMPDIR} | |
| cat<<EOF | /usr/bin/expect | |
| spawn cvs -d:pserver:[email protected]:/cvsroot/lirc login | |
| expect "CVS password:" | |
| send "\n\r" | |
| exit | |
| EOF | |
| cvs -z8 -d:pserver:[email protected]:/cvsroot/lirc co lirc | |
| wget -qO lircredrat3.tgz http://lircredrat3.svn.sourceforge.net/viewvc/lircredrat3/?view=tar | |
| tar xvzf lircredrat3.tgz | |
| /bin/mv lircredrat3/lirc/configure.ac lirc/ | |
| /bin/mv lircredrat3/lirc/setup.data lirc/ | |
| /bin/mv lircredrat3/lirc/drivers/lirc_redrat3/* lirc/drivers/lirc_redrat3/ | |
| /bin/rm -fr lircredrat3.tgz lircredrat3 | |
| (cd lirc; ./autogen.sh) | |
| (cd lirc; ./configure --with-moduledir=/lib/modules/$(/bin/uname -r)/misc --with-x --with-driver=redrat3 --with-major=61 --with-port=none --with-irq=none) | |
| (cd lirc; make) | |
| (cd lirc; make install | tee install.log) | |
| /sbin/modprobe lirc_redrat3 | |
| /usr/local/sbin/lircd | |
| # use irrecord to record your remote's signals into a lircd.conf if they're not available here: http://www.lirc.org/remotes.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment