From 23861c7fe69c8feb17b7edaee3e1035d83f8f2de Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Mon, 3 Apr 2023 12:16:41 +0000 Subject: T5141: Add numbers for dhclient-exit-hooks.d to enforce order --- scripts/dhcp/04-dhcp-wanlb | 4 ++++ scripts/dhcp/dhcp-wanlb | 4 ---- scripts/ppp/04-ppp-wanlb | 9 +++++++++ scripts/ppp/ppp-wanlb | 9 --------- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 scripts/dhcp/04-dhcp-wanlb delete mode 100644 scripts/dhcp/dhcp-wanlb create mode 100644 scripts/ppp/04-ppp-wanlb delete mode 100644 scripts/ppp/ppp-wanlb (limited to 'scripts') diff --git a/scripts/dhcp/04-dhcp-wanlb b/scripts/dhcp/04-dhcp-wanlb new file mode 100644 index 0000000..07f5ba3 --- /dev/null +++ b/scripts/dhcp/04-dhcp-wanlb @@ -0,0 +1,4 @@ +pid=/var/run/vyatta/wlb.pid +if [ -f $pid ]; then + kill -s SIGUSR2 $( cat $pid ) 2>/dev/null +fi diff --git a/scripts/dhcp/dhcp-wanlb b/scripts/dhcp/dhcp-wanlb deleted file mode 100644 index 07f5ba3..0000000 --- a/scripts/dhcp/dhcp-wanlb +++ /dev/null @@ -1,4 +0,0 @@ -pid=/var/run/vyatta/wlb.pid -if [ -f $pid ]; then - kill -s SIGUSR2 $( cat $pid ) 2>/dev/null -fi diff --git a/scripts/ppp/04-ppp-wanlb b/scripts/ppp/04-ppp-wanlb new file mode 100644 index 0000000..f3411cb --- /dev/null +++ b/scripts/ppp/04-ppp-wanlb @@ -0,0 +1,9 @@ +#! /bin/sh + +mkdir -p /var/run/load-balance/ppp +echo $5 > /var/run/load-balance/ppp/$6 + +pid=/var/run/vyatta/wlb.pid +if [ -f $pid ]; then + kill -s SIGUSR2 $( cat $pid ) 2>/dev/null +fi diff --git a/scripts/ppp/ppp-wanlb b/scripts/ppp/ppp-wanlb deleted file mode 100644 index f3411cb..0000000 --- a/scripts/ppp/ppp-wanlb +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh - -mkdir -p /var/run/load-balance/ppp -echo $5 > /var/run/load-balance/ppp/$6 - -pid=/var/run/vyatta/wlb.pid -if [ -f $pid ]; then - kill -s SIGUSR2 $( cat $pid ) 2>/dev/null -fi -- cgit v1.2.3