From 6fe42d144f7c5090a478dda1f243f3013b10c3ec Mon Sep 17 00:00:00 2001 From: Kelven Yang Date: Thu, 13 Jan 2011 14:27:28 -0800 Subject: [PATCH] remove escapes in awk scripts when it is running inside domR --- patches/systemvm/debian/config/root/netusage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/root/netusage.sh b/patches/systemvm/debian/config/root/netusage.sh index c458ff49d7a..6b421a0f5df 100644 --- a/patches/systemvm/debian/config/root/netusage.sh +++ b/patches/systemvm/debian/config/root/netusage.sh @@ -33,7 +33,7 @@ delete_public_interface () { } get_usage () { - iptables -L NETWORK_STATS -n -v -x | awk '\$1 ~ /^[0-9]+\$/ { printf \"%s:\", \$2}'; /root/clearUsageRules.sh > /dev/null + iptables -L NETWORK_STATS -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; /root/clearUsageRules.sh > /dev/null if [ $? -gt 0 -a $? -ne 2 ] then printf $?