Skip to content

Commit 59aed0b

Browse files
pkishinoklaasnicolaas
authored andcommitted
Updated asuswrt.markdown for new update
This describes the use of the two new configuration parameters: `interface` and `dnsmasq` and how this improves use with rt-n56u project
1 parent 6b871bc commit 59aed0b

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

source/_integrations/asuswrt.markdown

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ require_ip:
6767
required: false
6868
type: boolean
6969
default: true
70+
interface:
71+
description: "The interface of the router that you want statistics from (e.g. eth0,eth1 etc)"
72+
required: false
73+
type: string
74+
default: eth0
75+
dnsmasq:
76+
description: "The location of the dnsmasq.leases files"
77+
required: false
78+
type: string
79+
default: /var/lib/misc
7080
sensors:
7181
description: List of enabled sensors
7282
required: false
@@ -115,32 +125,5 @@ The example above, creates the following sensors:
115125

116126
## Padavan custom firmware (The rt-n56u project)
117127

118-
The [rt-n56u project](https://bitbucket.org/padavan/rt-n56u) does not store `dnsmasq.leases` which is used to track devices at `/var/lib/misc/` as `asuswrt` do. However this integration can still be used for the rt-n56u project by linking `dnsmasq.leases` during the boot process of the router.
119-
120-
Follow these steps to setup the link.
121-
122-
1. SSH or Telnet into the router. (default ssh admin@my.router)
123-
2. Run the following command to find the file:
124-
125-
```bash
126-
$ find / -name "dnsmasq.leases"
127-
```
128-
3. Copy or remember the full path of, example: `/tmp/dnsmasq.leases`
129-
4. Create the folder if it does not exist:
130-
131-
```bash
132-
$ mkdir -p /var/lib/misc
133-
```
134-
5. Add the linking process to the routers started script (one line):
135-
136-
```bash
137-
$ echo "/bin/ln -s /tmp/dnsmasq.leases /var/lib/misc/dnsmasq.leases" >> /etc/storage/started_script.sh
138-
```
139-
140-
6. Reboot the router or link the file:
141-
142-
```bash
143-
$ /bin/ln -s /tmp/dnsmasq.leases /var/lib/misc/dnsmasq.leases
144-
```
145-
146-
The started script is also accessible and editable in the Router's web interface. `Advanced Settings -> Customization -> Scripts -> Custom User Script -> Run After Router Started`
128+
The [rt-n56u project](https://bitbucket.org/padavan/rt-n56u) does not store `dnsmasq.leases` which is used to track devices at `/var/lib/misc/` as `asuswrt` do. However this integration can still be used for the rt-n56u project by changing the dnsmasq location using the `dnsmasq` variable to `dnsmasq: '/tmp'`
129+
Also, to get the statistics for the `WAN` port, specify `interface: 'eth3'` as this is the interface used in the rt-n56u project

0 commit comments

Comments
 (0)