summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2012-03-01 06:23:24 -0800
committerDeepti Kulkarni <deepti@vyatta.com>2012-03-01 06:23:24 -0800
commita3edafa4c2db4f19d89ac73f00870eb5324dce45 (patch)
tree3fcbedb6b22869dd61d9804756af4e42169c4e20
parentea000e9e0a025462bc6873c03a0c77335f74f811 (diff)
downloadvyatta-cfg-system-a3edafa4c2db4f19d89ac73f00870eb5324dce45.tar.gz
vyatta-cfg-system-a3edafa4c2db4f19d89ac73f00870eb5324dce45.zip
bug fix for 7489 - Added warning message on delete system console
-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 "