https://github.com/handsomemod/gc
A Simple Tool To Control Usb Gadget
https://github.com/handsomemod/gc
Last synced: 3 months ago
JSON representation
A Simple Tool To Control Usb Gadget
- Host: GitHub
- URL: https://github.com/handsomemod/gc
- Owner: HandsomeMod
- License: gpl-2.0
- Created: 2022-01-20T08:50:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T07:37:26.000Z (about 3 years ago)
- Last Synced: 2023-03-05T16:08:17.746Z (about 2 years ago)
- Language: C
- Size: 26.4 KB
- Stars: 5
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Gadget Controller
### A Simple Tool To Control Usb Gadget
## Dependency
* Cmake
* libusbgx## Compile
``` shell
git clone https://github.com/HandsomeMod/gc.git
cd gc
mkdir build
cd build
cmake ..
make
```## Usage
``` shell
Usage : gc [options....]
-h Show this help.
-l Show active gadget functions.
-c Clean all active gadget. -e Enable all active gadget.
-d Disable all active gadget.
-a [configs ...] Add a gadget function.
-r Delete a gadget function by name in list (-l).
```## Examples
``` shell
# Add a rndis function to gadget
gc -a rndis
# Show Gadget Status
gc -l
# Add a mass storage function to gadget
gc -a mass /home/user
```## License
Gadget Controller is licensed under GPL-2.0.