summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/console/device/node.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/system/console/device/node.def b/templates/system/console/device/node.def
index 41fcf3fb..d2b279b8 100644
--- a/templates/system/console/device/node.def
+++ b/templates/system/console/device/node.def
@@ -7,3 +7,8 @@ val_help: <ttyXX>; Serial device name
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 "