<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From a3edafa4c2db4f19d89ac73f00870eb5324dce45 Mon Sep 17 00:00:00 2001
From: Deepti Kulkarni &lt;deepti@vyatta.com&gt;
Date: Thu, 1 Mar 2012 06:23:24 -0800
Subject: bug fix for 7489 - Added warning message on delete system console

---
 templates/system/console/device/node.def | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'templates/system/console/device/node.def')

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: &lt;ttyXX&gt;; 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 "
-- 
cgit v1.2.3

</pre></body></html>