summaryrefslogtreecommitdiff
path: root/templates/system/console/device/node.def
blob: 004389472a32f6fbe2877458a8c0e40ae996f4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
tag:
type: txt
help: Serial console device name

val_help: <ttySN>; Serial device name
val_help: <ttyUSBX>; USB Serial device name
val_help: <hvc0>; Xen console

syntax:expression: pattern $VAR(@) "^((tty[A-Z])|ttymxc|ttyUSB|(hvc)){1}[0-9]+$" \
	; "console $VAR(@): not a valid tty name"

end:  sudo sh -c "
      declare -a devices=( $VAR(@@) )
      if [ "\${#devices[*]}" == "0" ]; then
      echo Warning: Access to system console is unconfigured
      fi "