https://github.com/qu1x/ledtrig-usbdev
Kernel module to drive LEDs based on USB device presence/activity
https://github.com/qu1x/ledtrig-usbdev
kernel-module led-controller usb-monitoring
Last synced: 7 months ago
JSON representation
Kernel module to drive LEDs based on USB device presence/activity
- Host: GitHub
- URL: https://github.com/qu1x/ledtrig-usbdev
- Owner: qu1x
- Created: 2017-04-22T21:32:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-13T12:38:42.000Z (over 8 years ago)
- Last Synced: 2025-02-22T05:27:24.143Z (about 1 year ago)
- Topics: kernel-module, led-controller, usb-monitoring
- Language: C
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ledtrig-usbdev
**Kernel module to drive LEDs based on USB device presence/activity**
Forked from [LEDE][] and distributed as standalone package.
[LEDE]: https://github.com/lede-project/source
**NOTE**: Obsolete and replaced by in-tree module `ledtrig-usbport`.
## Installation
1. Install Linux headers **and** sources (required for `drivers/leds/leds.h`):
```sh
sudo apt-get install linux-headers-$(uname -r) linux-source
```
2. Extract the Linux sources:
```sh
(cd /usr/src && sudo tar -xJf linux-source-*.tar.xz)
```
3. Clone and install this module's sources:
```sh
git clone https://github.com/qu1x/ledtrig-usbdev.git
sudo mv ledtrig-usbdev /usr/src/ledtrig-usbdev-1.0.0
```
4. Build and install this module:
- Either via Make (must be manually rebuilt for each kernel update):
```sh
sudo make -C /usr/src/ledtrig-usbdev-1.0.0 install
```
- Or via DKMS (will be automatically rebuilt for each kernel update):
1. Install DKMS:
```sh
sudo apt-get install dkms
```
2. Install this module:
```sh
sudo dkms install ledtrig-usbdev/1.0.0
```