diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 16:09:21 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 16:09:21 -0800 |
commit | 445446c859bf5f4b6f4487b1e97c5d5d7ccd3464 (patch) | |
tree | 274c5dcbdaffb92abb8a0d4d6695cfbe9518e741 | |
parent | af70eb27981808621e43f4937b4d9eb7b525d8e6 (diff) | |
download | vyatta-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.
-rw-r--r-- | templates/system/console/device/node.def | 8 |
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" + |