net/mwan3: fix ubus output for mwan3track running state
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 21 Jul 2017 13:07:46 +0000 (15:07 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 10 Aug 2017 08:48:14 +0000 (10:48 +0200)
Fix ubus output for mwan3track running state

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/libexec/rpcd/mwan3

index bbc570f6c2b3c3b185e3f27e4d7ff4abdb85a85e..f4d59220b0cc53c3e86b55790d79876a5568a2c2 100755 (executable)
@@ -37,7 +37,7 @@ get_mwan3_status() {
        local pid
 
        if [ "${iface}" = "${iface_select}" ] || [ "${iface_select}" = "" ]; then
-               pid="$(pgrep -f "mwan3track $iface_selected")"
+               pid="$(pgrep -f "mwan3track $iface")"
                if [ "${pid}" != "" ]; then
                        running="1"
                fi