blob: fa05580634dee60c787d000b7fbe1ac52ea2e60b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
tag:
type: txt
help: Serial console device name
val_help: <ttySN>; Serial device name
val_help: <ttymxcN>; Freescale i.MX 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 "
|