From d5677543ecf83d7ab4ac191cf2160060e8429797 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 16:29:57 -0700 Subject: Fix test for UP /sys/devices/system/cpu/present is 0-NN on SMP and 0 on UP. --- templates/interfaces/ethernet/node.tag/smp_affinity/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def index f62ef246..68f4b6f9 100644 --- a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def +++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def @@ -29,7 +29,7 @@ syntax:expression: exec " \ fi" update: - if [ $(cat /sys/devices/system/cpu/present) -eq 0 ]; then + if [ $(cat /sys/devices/system/cpu/present) = 0 ]; then exit 0 fi if [ "$VAR(@)" = "auto" ]; then -- cgit v1.2.3