Initial OpenWrt RMM implementation

This commit is contained in:
benya
2026-06-04 15:26:43 +03:00
commit 3cc9385f14
44 changed files with 9892 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# rmm-agent OpenWrt Package
OpenWrt package skeleton for the MVP shell agent.
## Buildroot Usage
Copy or symlink this directory into an OpenWrt buildroot package path:
```sh
cp -R agent/package/rmm-agent /path/to/openwrt/package/rmm-agent
cd /path/to/openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make package/rmm-agent/compile V=s
```
Then install the generated `.ipk` on a router:
```sh
opkg install /tmp/rmm-agent_*.ipk
vi /etc/rmm-agent.conf
/etc/init.d/rmm-agent enable
/etc/init.d/rmm-agent start
```
## Installed Files
- `/usr/bin/rmm-agent`
- `/etc/init.d/rmm-agent`
- `/etc/rmm-agent.conf`
## Maintainer Note
The package currently vendors a copy of `agent/openwrt/rmm-agent.sh` into `files/usr/bin/rmm-agent` because OpenWrt package builds expect package-local files. Keep both files in sync until a small sync script is added.