summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 16:09:21 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 16:09:21 -0800
commit445446c859bf5f4b6f4487b1e97c5d5d7ccd3464 (patch)
tree274c5dcbdaffb92abb8a0d4d6695cfbe9518e741 /templates
parentaf70eb27981808621e43f4937b4d9eb7b525d8e6 (diff)
downloadvyatta-cfg-system-445446c859bf5f4b6f4487b1e97c5d5d7ccd3464.tar.gz
vyatta-cfg-system-445446c859bf5f4b6f4487b1e97c5d5d7ccd3464.zip
Block accidental use of virtual consoles
The devices tty1 ... are virtual consoles and should not be configured through the CLI.
Diffstat (limited to 'templates')
-rw-r--r--templates/system/console/device/node.def8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/system/console/device/node.def b/templates/system/console/device/node.def
index 76ce02bc..20fd6580 100644
--- a/templates/system/console/device/node.def
+++ b/templates/system/console/device/node.def
@@ -1,6 +1,8 @@
tag:
type: txt
help: Serial console device name
-val_help: <ttyX>; Serial device name
-syntax:expression: pattern $VAR(@) "^tty[A-Z0-9]+$" \
- ; "console $VAR(@): not a valid tty name"
+val_help: <ttyXX>; Serial device name
+
+syntax:expression: pattern $VAR(@) "^tty[A-Z]+[0-9]+$" \
+ ; "console $VAR(@): not a valid tty name"
+