diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 16:29:57 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 16:29:57 -0700 |
commit | d5677543ecf83d7ab4ac191cf2160060e8429797 (patch) | |
tree | 36ad55a3122563aaba66c6c094456dfd3b5ea211 /templates | |
parent | d03a8d064e202a47ab52df7a42b4a0561c45238f (diff) | |
download | vyatta-cfg-quagga-d5677543ecf83d7ab4ac191cf2160060e8429797.tar.gz vyatta-cfg-quagga-d5677543ecf83d7ab4ac191cf2160060e8429797.zip |
Fix test for UP
/sys/devices/system/cpu/present is 0-NN on SMP and 0 on UP.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/smp_affinity/node.def | 2 |
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 |