summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2008-10-31 10:27:09 -0700
committerslioch <slioch@eng-140.vyatta.com>2008-10-31 10:27:09 -0700
commitc1c7a4968fa3bddc258e38f181c37c907e4f3557 (patch)
tree422719eb839674ba788a126cc1a07d440175c292
parentac39481cf76ae84ea196d0cdc9cb4a849355b7ef (diff)
downloadvyatta-wanloadbalance-c1c7a4968fa3bddc258e38f181c37c907e4f3557.tar.gz
vyatta-wanloadbalance-c1c7a4968fa3bddc258e38f181c37c907e4f3557.zip
fix for bug 3608. add connnection comment to sudoers directory.
-rw-r--r--Makefile.am1
-rw-r--r--scripts/vyatta-wlb-connection4
-rw-r--r--templates/show/wan-load-balance/connection/node.def2
3 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index aeef63a..f0d9b3b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,6 +13,7 @@ sbin_SCRIPTS = scripts/vyatta-wanloadbalance.pl
sbin_SCRIPTS += scripts/vyatta-wanloadbalance.init
bin_sudo_users_SCRIPTS = scripts/vyatta-wlb-status
+bin_sudo_users_SCRIPTS += scripts/vyatta-wlb-connection
curver_DATA = cfg-version/wanloadbalance@1
diff --git a/scripts/vyatta-wlb-connection b/scripts/vyatta-wlb-connection
new file mode 100644
index 0000000..40060ae
--- /dev/null
+++ b/scripts/vyatta-wlb-connection
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cat /proc/net/ip_conntrack | grep ' mark=[1-9]'
+
diff --git a/templates/show/wan-load-balance/connection/node.def b/templates/show/wan-load-balance/connection/node.def
index 84de67c..d76fb51 100644
--- a/templates/show/wan-load-balance/connection/node.def
+++ b/templates/show/wan-load-balance/connection/node.def
@@ -1,6 +1,6 @@
help: Show Wide Area Network (WAN) load-balancing flow
run: if [ -f /var/load-balance/wlb.out ] ; then
- sudo cat /proc/net/ip_conntrack | grep ' mark=[1-9]'
+ sudo ${vyatta_bindir}/sudo-users/vyatta-wlb-connection
else
echo WAN load balancing is not configured
fi