diff options
-rw-r--r-- | templates/interfaces/ethernet/node.tag/smp_affinity/node.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def index 098287cc..f62ef246 100644 --- a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def +++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def @@ -29,6 +29,9 @@ syntax:expression: exec " \ fi" update: + if [ $(cat /sys/devices/system/cpu/present) -eq 0 ]; then + exit 0 + fi if [ "$VAR(@)" = "auto" ]; then echo "Setting SMP affinity for $VAR(../@) automatically." sudo /opt/vyatta/sbin/vyatta-auto-irqaffin.pl --setup $VAR(../@) |