summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 16:29:57 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 16:29:57 -0700
commitd5677543ecf83d7ab4ac191cf2160060e8429797 (patch)
tree36ad55a3122563aaba66c6c094456dfd3b5ea211
parentd03a8d064e202a47ab52df7a42b4a0561c45238f (diff)
downloadvyatta-cfg-system-d5677543ecf83d7ab4ac191cf2160060e8429797.tar.gz
vyatta-cfg-system-d5677543ecf83d7ab4ac191cf2160060e8429797.zip
Fix test for UP
/sys/devices/system/cpu/present is 0-NN on SMP and 0 on UP.
-rw-r--r--templates/interfaces/ethernet/node.tag/smp_affinity/node.def2
1 files changed, 1 insertions, 1 deletions
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