summaryrefslogtreecommitdiff
path: root/templates/interfaces/pseudo-ethernet
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-07 15:34:23 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-07-17 14:56:06 -0700
commit3636e1dd5cbba36309207826e40b222cca853297 (patch)
treeae6a8472aa69d44bfcef85ba23f7cecf3aefc08c /templates/interfaces/pseudo-ethernet
parent2b1af8589dbb6e2bbd40d497a1999c5c58e04eb0 (diff)
downloadvyatta-cfg-quagga-3636e1dd5cbba36309207826e40b222cca853297.tar.gz
vyatta-cfg-quagga-3636e1dd5cbba36309207826e40b222cca853297.zip
Fix descriptions with meta-characters
Bug 4672 Use ip command rather than sysfs to avoid quoting issues (cherry picked from commit 1b4902564b5a853b925d2c239c8e6a39b1734433)
Diffstat (limited to 'templates/interfaces/pseudo-ethernet')
-rw-r--r--templates/interfaces/pseudo-ethernet/node.tag/description/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/description/node.def b/templates/interfaces/pseudo-ethernet/node.tag/description/node.def
index d7becd13..1fcca391 100644
--- a/templates/interfaces/pseudo-ethernet/node.tag/description/node.def
+++ b/templates/interfaces/pseudo-ethernet/node.tag/description/node.def
@@ -1,4 +1,4 @@
type: txt
help: Set description for this interface
-update: sudo sh -c "echo $VAR(@) >/sys/class/net/$VAR(../@)/ifalias"
+update: sudo ip li set dev $VAR(../@) alias "$VAR(@)"
delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"