Update Ubus documentation (#15892)

* Update Ubus documentation

* Move the note up

* Update naming

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
Pieter Frenssen 2020-12-14 10:35:56 +02:00 committed by GitHub
parent 5b67c574ec
commit 492c98787b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,16 +10,11 @@ ha_domain: ubus
This is a presence detection scanner for [OpenWrt](https://openwrt.org/) using [ubus](https://wiki.openwrt.org/doc/techref/ubus). It scans for changes in `hostapd.*`, which will detect and report changes in devices connected to the access point on the router.
Before this scanner can be used you have to install the ubus RPC package on OpenWRT:
Before this scanner can be used you have to install the ubus RPC packages on OpenWrt (versions older than 18.06.x do not require the `uhttpd-mod-ubus` package):
```bash
opkg install rpcd-mod-file
```
For OpenWrt version 18.06.x the package uhttpd-mod-ubus should also be installed:
```bash
opkg install uhttpd-mod-ubus
opkg update
opkg install rpcd-mod-file uhttpd-mod-ubus
```
And create on your OpenWrt device a read-only user to be used by setting up the ACL file `/usr/share/rpcd/acl.d/user.json`.