summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/vyatta-wanloadbalance6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-wanloadbalance b/etc/init.d/vyatta-wanloadbalance
index fb5edcc..7404501 100644
--- a/etc/init.d/vyatta-wanloadbalance
+++ b/etc/init.d/vyatta-wanloadbalance
@@ -10,7 +10,11 @@ test -x $bb || exit 0
start ()
{
- /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid
+ if [ -n "$conf" ] ; then
+ /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid 2>/dev/null
+ else
+ /opt/vyatta/sbin/wan_lb -f /var/load-balance/wlb.conf -d -i $pid 2>/dev/null
+ fi
}
stop ()