diff options
Diffstat (limited to 'templates/system/console/device')
-rw-r--r-- | templates/system/console/device/node.def | 6 | ||||
-rw-r--r-- | templates/system/console/device/node.tag/speed/node.def | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/system/console/device/node.def b/templates/system/console/device/node.def new file mode 100644 index 00000000..76ce02bc --- /dev/null +++ b/templates/system/console/device/node.def @@ -0,0 +1,6 @@ +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" diff --git a/templates/system/console/device/node.tag/speed/node.def b/templates/system/console/device/node.tag/speed/node.def new file mode 100644 index 00000000..637f12c7 --- /dev/null +++ b/templates/system/console/device/node.tag/speed/node.def @@ -0,0 +1,6 @@ +type: u32 +help: Console baud rate +allowed: echo 1200 2400 4800 9600 19200 38400 57600 115200 +syntax:expression: $VAR(@) in 1200, 2400, 4800, 9600, 19200, 38400, \ + 57600, 115200 ; "unknown baud rate" +val_help: u32: 1200-115200: Baud rate for console port |