summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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