diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-04-24 13:33:46 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-04-24 13:33:46 -0700 |
commit | a309f120a9ff472d45544a9101226334e426e76a (patch) | |
tree | bfdb25a51f42443587668e8fd5ba0597b0d744d9 /scripts/vyatta-output-config.pl | |
parent | c29e34d11a22eecbaa50fa134965f2fa036f47f3 (diff) | |
parent | 7fd560b72df1b327b4b47a6232dfcf16d6fae52c (diff) | |
download | vyatta-cfg-a309f120a9ff472d45544a9101226334e426e76a.tar.gz vyatta-cfg-a309f120a9ff472d45544a9101226334e426e76a.zip |
Merge branch 'glendale'
Diffstat (limited to 'scripts/vyatta-output-config.pl')
-rwxr-xr-x | scripts/vyatta-output-config.pl | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/scripts/vyatta-output-config.pl b/scripts/vyatta-output-config.pl index 65169f6..05bdc4c 100755 --- a/scripts/vyatta-output-config.pl +++ b/scripts/vyatta-output-config.pl @@ -1,5 +1,24 @@ #!/usr/bin/perl +# Author: An-Cheng Huang <ancheng@vyatta.com> +# Date: 2007 +# Description: Script to output the configuration + +# **** License **** +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# This code was originally developed by Vyatta, Inc. +# Portions created by Vyatta are Copyright (C) 2006, 2007, 2008 Vyatta, Inc. +# All Rights Reserved. +# **** End License **** + use strict; use lib "/opt/vyatta/share/perl5/"; use VyattaConfigOutput; @@ -8,6 +27,7 @@ if ($ARGV[0] eq '-all') { shift; VyattaConfigOutput::set_show_all(1); } + if ($ARGV[0] eq '-active') { shift; VyattaConfigOutput::set_hide_password(1); @@ -15,5 +35,5 @@ if ($ARGV[0] eq '-active') { } else { VyattaConfigOutput::outputNewConfig(@ARGV); } -exit 0; +exit 0; |