summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/priority.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/priority.pl b/scripts/priority.pl
index 0cadbc3..412b600 100644
--- a/scripts/priority.pl
+++ b/scripts/priority.pl
@@ -59,6 +59,7 @@ sub wanted {
# main program
my $cfgdir = '/opt/vyatta/share/vyatta-cfg/templates';
+$cfgdir = $ARGV[0] if $#ARGV == 0;
die "$cfgdir does not exist!" unless -d $cfgdir;
# walk config file tree