summaryrefslogtreecommitdiff
path: root/scripts/vyatta-output-config.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-output-config.pl')
-rwxr-xr-xscripts/vyatta-output-config.pl22
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;