Developing lightweight computation at the DSG edge

Commit 10990f41 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix #361. Add hook for TP-Link TL-WR842N[D]-v2 devices where eth0...

[qmp-system] Fix #361. Add hook for TP-Link TL-WR842N[D]-v2 devices where eth0 and eth1 are swapped:
 - eth0 (blue) => WAN
 - eth1 (yellow) => LAN
parent 2e690e75
#!/bin/sh
# Stage = [birth|firstboot|anyboot|preconf|postconf]
STAGE="$1"
[ "$STAGE" == "birth" ] && {
echo "Configuring network for TL-WR842N[D]-v2"
uci set qmp.interfaces.lan_devices="eth1"
uci set qmp.interfaces.lan_devices="eth0"
uci commit qmp
}
../scripts/tl-wr842n-v2.sh
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment