diff -u lirc-0.8.2/debian/changelog lirc-0.8.2/debian/changelog --- lirc-0.8.2/debian/changelog +++ lirc-0.8.2/debian/changelog @@ -1,3 +1,9 @@ +lirc (0.8.2-0ubuntu7) gutsy; urgency=low + + * Be sure to rmmod ati_remote.ko if necessary (LP: #140940) + + -- Mario Limonciello Thu, 20 Sep 2007 10:06:20 -0500 + lirc (0.8.2-0ubuntu6) gutsy; urgency=low * Add 20_serial_igor.dpatch for additional serial kernel module diff -u lirc-0.8.2/debian/lirc.postinst lirc-0.8.2/debian/lirc.postinst --- lirc-0.8.2/debian/lirc.postinst +++ lirc-0.8.2/debian/lirc.postinst @@ -158,7 +158,9 @@ #For atilibusb, we need to blacklist the kernel module if [ "$DRIVER" = "atilibusb" ]; then - db_set lirc/blacklist "lirc_atiusb" + db_set lirc/blacklist "lirc_atiusb ati_remote" + elif [ "$DRIVER" = "atiusb" ]; then + db_set lirc/blacklist "ati_remote" else db_set lirc/blacklist "" fi @@ -182,11 +184,16 @@ #Because a module had to be blacklisted. Don't #Modify by hand, but rather via #dpkg-reconfigure lirc -blacklist $BLACKLIST EOF - if grep "$BLACKLIST" /proc/modules > /dev/null; then - rmmod $BLACKLIST - fi + for item in $BLACKLIST + do + cat >> /etc/modprobe.d/lirc <