From 027f3ba3c8bc757a9bf86cb5ac23b7323a2e7a5e Mon Sep 17 00:00:00 2001
From: Robert Bays <robert@vyatta.com>
Date: Tue, 15 Mar 2011 12:22:49 -0700
Subject: updated fix for bug 6919: Console settings don't support hvc0 for xen

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

(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 56191819..68ee5724 100644
--- a/templates/system/console/device/node.def
+++ b/templates/system/console/device/node.def
@@ -2,7 +2,8 @@ tag:
 type: txt
 help: Serial console device name
 val_help: <ttyXX>; Serial device name
+  <hvc0>; Xen console
 
-syntax:expression: pattern $VAR(@) "^tty[A-Z]+[0-9]+$ || ^hvc[0-9]+" \
+syntax:expression: pattern $VAR(@) "^((tty[A-Z])||(hvc))+[0-9]+$" \
 	; "console $VAR(@): not a valid tty name"
 
-- 
cgit v1.2.3

