From 7232e04d5d021f60e4cf6463328c165f19d56c6c Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Tue, 7 Oct 2008 17:10:25 +0200
Subject: Change allow-root nodes to boolean

These are boolean, not text fields. Only allowed value is true/false
---
 templates/service/telnet/allow-root/node.def | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'templates/service/telnet/allow-root/node.def')

diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def
index 347a9476..e01763b6 100644
--- a/templates/service/telnet/allow-root/node.def
+++ b/templates/service/telnet/allow-root/node.def
@@ -1,9 +1,7 @@
-type: txt
+type: bool
 default: false
 help: Enable/disable root login
 
-syntax:expression: $VAR(@) in "true", "false" ; "must be true or false"
-
 update: pids=`who -u | awk -F " " '{print $7}'`
         for i in $pids
         do
@@ -20,7 +18,6 @@ update: pids=`who -u | awk -F " " '{print $7}'`
         else
           sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null
         fi 
-        /bin/true
 
 delete: pids=`who -u | awk -F " " '{print $7}'`
         for i in $pids
@@ -33,4 +30,7 @@ delete: pids=`who -u | awk -F " " '{print $7}'`
           fi
         done
         sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null
-        /bin/true
+
+comp_help: possible completions:
+ true               Allow root to login via telnet
+ false              Don't allow root to login via telnet(default)
-- 
cgit v1.2.3

