summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2011-02-12 10:26:09 -0800
committerMichael Larson <mike@vyatta.com>2011-02-12 10:26:09 -0800
commitf26ace5c9f88cbf842e8566dbc2656e61e55ff08 (patch)
treebe94baa769397361db39a7eb62ff8ab3fa82b149 /scripts
parent1c97581618cab567c9bc3ce230f1ee6fe63eaadb (diff)
downloadvyatta-wanloadbalance-f26ace5c9f88cbf842e8566dbc2656e61e55ff08.tar.gz
vyatta-wanloadbalance-f26ace5c9f88cbf842e8566dbc2656e61e55ff08.zip
fix for missing wlb.conf file.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index 354c59c..ef8165f 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -326,6 +326,7 @@ if (defined $nexthop) {
}
#open file
+`touch $conf_file`; #creates file on first access
open(FILE, "<$conf_file") or die "Can't open wlb config file";
open(FILE_LCK, "+>$conf_lck_file") or die "Can't open wlb lock file";