From 7287a0f1a93fb8f56608ccf01dce1f4b73a6b7ba Mon Sep 17 00:00:00 2001 From: Chris 'BinGOs' Williams Date: Mon, 14 Oct 2013 22:36:41 +0100 Subject: [PATCH] Handle recent firmware updates OpenReach have kindly updated the firmware on the HG612. The current sync speed text has changed to 'Bearer', so we look for that now, as well as 'Path'. --- plugins/hg612_current_speed | 4 ++-- plugins/hg612_sync_speed | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/hg612_current_speed b/plugins/hg612_current_speed index 2c354f1..e418e76 100755 --- a/plugins/hg612_current_speed +++ b/plugins/hg612_current_speed @@ -49,10 +49,10 @@ if [ "$1" = "config" ]; then fi; echo -n "downstream.value " -echo $(grep Upstream $statsfile | grep Path | head -n 1 | awk '{ print $11 }')000 +echo $(grep Upstream $statsfile | grep 'Path\|Bearer' | head -n 1 | awk '{ print $11 }')000 echo -n "upstream.value " -echo $(grep Upstream $statsfile | grep Path | head -n 1 | awk '{ print $6 }')000 +echo $(grep Upstream $statsfile | grep 'Path\|Bearer' | head -n 1 | awk '{ print $6 }')000 exit 0 fi diff --git a/plugins/hg612_sync_speed b/plugins/hg612_sync_speed index 9004f5b..b684a98 100755 --- a/plugins/hg612_sync_speed +++ b/plugins/hg612_sync_speed @@ -59,13 +59,13 @@ echo -n "maxdownstream.value " echo $(grep Upstream $statsfile | grep Max | head -n 1 | awk '{ print $10 }')000 echo -n "downstream.value " -echo $(grep Upstream $statsfile | grep Path | head -n 1 | awk '{ print $11 }')000 +echo $(grep Upstream $statsfile | grep 'Path\|Bearer' | head -n 1 | awk '{ print $11 }')000 echo -n "maxupstream.value " echo $(grep Upstream $statsfile | grep Max | head -n 1 | awk '{ print $5 }')000 echo -n "upstream.value " -echo $(grep Upstream $statsfile | grep Path | head -n 1 | awk '{ print $6 }')000 +echo $(grep Upstream $statsfile | grep 'Path\|Bearer' | head -n 1 | awk '{ print $6 }')000 exit 0