summaryrefslogtreecommitdiff
path: root/templates/system/console/device/node.def
blob: d2b279b8338a9b02ae0aaf8af5c34c968520ba39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
tag:
type: txt
help: Serial console device name
val_help: <ttyXX>; Serial device name
  <hvc0>; Xen console

syntax:expression: pattern $VAR(@) "^((tty[A-Z])||(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 "