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
cd /lib/modules/`uname -r`/kernel/drivers && \ | |
mv -n media/rc/ir_toy.ko media/rc/ir_toy.ko.DISABLED && \ | |
mv -n usb/class/cdc-acm.ko usb/class/cdc-acm.ko.DISABLED && \ | |
env -i sed -e 's/\xd8\x04\x08\xfd/\xff\x04\x08\xfd/' < usb/class/cdc-acm.ko.DISABLED > usb/class/cdc-acm.ko && \ | |
depmod -a | |
# reboot after doing the change. | |
# | |
# This changes blacklisting of USB ID `04d8:fd08` in cdc-acm, so IrToy gets recognized | |
# as it was in previous kernel versions, and `/dev/ttyACM0` gets created for it instead of `/dev/lirc0` |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include "list.h" | |
typedef struct episode { | |
int epid; | |
struct list_head list; | |
} episode_t; |