summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@eng-140.vyatta.com>2008-08-22 15:10:13 -0700
committerroot <root@eng-140.vyatta.com>2008-08-22 15:10:13 -0700
commitc1ef164982868d24c9b1c9f45b4cc7442e4150bd (patch)
treecb6adbaa9b623f2c9451dc4227e7be0f5c22c6c2
parent4bec8f1de85b4ded7d3d7815eb4c734f993af8aa (diff)
downloadvyatta-wanloadbalance-c1ef164982868d24c9b1c9f45b4cc7442e4150bd.tar.gz
vyatta-wanloadbalance-c1ef164982868d24c9b1c9f45b4cc7442e4150bd.zip
fix for bug 3608.
-rw-r--r--Makefile.am3
-rwxr-xr-xscripts/vyatta-wlb-status4
-rw-r--r--templates/show/wan-load-balance/status/node.def2
3 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index cfccfc1..aeef63a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,5 @@
cfgdir = $(datadir)/vyatta-cfg/templates
+bin_sudo_usersdir = $(bindir)/sudo-users
curverdir = $(sysconfdir)/config-migrate/current
initddir = /etc/init.d
@@ -11,6 +12,8 @@ CLEANFILES = src/main.o src/lbdata.o src/lbdatafactory.o src/loadbalance.o src/r
sbin_SCRIPTS = scripts/vyatta-wanloadbalance.pl
sbin_SCRIPTS += scripts/vyatta-wanloadbalance.init
+bin_sudo_users_SCRIPTS = scripts/vyatta-wlb-status
+
curver_DATA = cfg-version/wanloadbalance@1
src_wan_lb_SOURCES = src/main.cc
diff --git a/scripts/vyatta-wlb-status b/scripts/vyatta-wlb-status
new file mode 100755
index 0000000..cfa9c84
--- /dev/null
+++ b/scripts/vyatta-wlb-status
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+iptables -L PREROUTING -t mangle -v
+
diff --git a/templates/show/wan-load-balance/status/node.def b/templates/show/wan-load-balance/status/node.def
index 6cd58ec..ff63a2e 100644
--- a/templates/show/wan-load-balance/status/node.def
+++ b/templates/show/wan-load-balance/status/node.def
@@ -1,6 +1,6 @@
help: Show WAN load-balancing statistics
run: if [ -f /var/load-balance/wlb.out ] ; then
- sudo /sbin/iptables -L PREROUTING -t mangle -v
+ sudo ${vyatta_bindir}/sudo-users/vyatta-wlb-status
else
echo WAN load balancing is not configured
fi