From 153a88d6cee7ae03a36b8b121dbac523bce0acdd Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Tue, 19 Jan 2010 06:27:00 -0800 Subject: fix bug 5226: Hostname does not allow number as first char --- templates/system/host-name/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/system') diff --git a/templates/system/host-name/node.def b/templates/system/host-name/node.def index 94f38b93..ed6cc7fe 100644 --- a/templates/system/host-name/node.def +++ b/templates/system/host-name/node.def @@ -2,7 +2,7 @@ priority: 400 type: txt help: Set system host name (default: vyatta) default: "vyatta" -syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alnum:]]*[[:alnum:]]$" +syntax:expression: pattern $VAR(@) "^[[:alnum:]][-.[:alnum:]]*[[:alnum:]]$" ; "invalid host name $VAR(@)" update: sudo sh -c " \ hostname '$VAR(@)' -- cgit v1.2.3