diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-09-15 12:06:07 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-09-15 12:06:07 -0700 |
commit | 93f7c1c4d0ec76d81f093b2fc966cf56c17b372b (patch) | |
tree | 2c2029653f715a2fcfe726670f039aece0518bd3 /scripts | |
parent | 7e5b2d590d663c40b6d1a1c4a370b0c0bb770f8c (diff) | |
download | vyatta-op-93f7c1c4d0ec76d81f093b2fc966cf56c17b372b.tar.gz vyatta-op-93f7c1c4d0ec76d81f093b2fc966cf56c17b372b.zip |
change op-mode command 'clear dns forwarding statistics' to 'clear dns forwarding all'
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-op-dns-forwarding.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-op-dns-forwarding.pl b/scripts/vyatta-op-dns-forwarding.pl index 978ed33..24a64e6 100644 --- a/scripts/vyatta-op-dns-forwarding.pl +++ b/scripts/vyatta-op-dns-forwarding.pl @@ -213,10 +213,10 @@ sub print_nameservers { # # main # -my ($clear_cache, $clear_statistics, $show_statistics, $show_nameservers); +my ($clear_cache, $clear_all, $show_statistics, $show_nameservers); GetOptions("clear-cache!" => \$clear_cache, - "clear-statistics!" => \$clear_statistics, + "clear-all!" => \$clear_all, "show-statistics!" => \$show_statistics, "show-nameservers!" => \$show_nameservers); @@ -224,7 +224,7 @@ if (defined $clear_cache) { system("kill -1 `pidof dnsmasq`"); } -if (defined $clear_statistics) { +if (defined $clear_all) { system("/etc/init.d/dnsmasq restart >&/dev/null"); } |