From 7962bfd3dfc506b4abe8a6388442f3a9adeafeab Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 11 May 2018 08:28:57 +0200 Subject: [PATCH] net/mwan3: replace legancy backticks Replace legancy backticks syntax shell execution with braces. Signed-off-by: Florian Eckert --- net/mwan3/files/usr/sbin/mwan3track | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index 068e9cb14..c70547904 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -122,12 +122,12 @@ main() { ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip &> /dev/null result=$? else - ping_result=`ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip | tail -2` - loss=`echo "$ping_result" | grep "packet loss" | cut -d "," -f3 | awk '{print $1}' | sed -e 's/%//'` + ping_result="$(ping -I $DEVICE -c $count -W $timeout -s $size -q $track_ip | tail -2)" + loss="$(echo "$ping_result" | grep "packet loss" | cut -d "," -f3 | awk '{print $1}' | sed -e 's/%//')" if [ "$loss" -eq 100 ]; then latency=999999 else - latency=`echo "$ping_result" | grep -E 'rtt|round-trip' | cut -d "=" -f2 | cut -d "/" -f2 | cut -d "." -f1` + latency="$(echo "$ping_result" | grep -E 'rtt|round-trip' | cut -d "=" -f2 | cut -d "/" -f2 | cut -d "." -f1)" fi fi ;;