From b8fdc7398ce7ae1852e019e2f8773f95125619ed Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 13 Sep 2018 14:37:51 +0100 Subject: [PATCH] static-routes: Make it clear that we are reloading routes When RED is brought down, we will reload all static routes. Signed-off-by: Michael Tremer --- config/rootfiles/core/124/filelists/files | 2 ++ src/initscripts/networking/red.down/10-static-routes | 4 ++-- src/initscripts/system/static-routes | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/core/124/filelists/files b/config/rootfiles/core/124/filelists/files index cfd300dcec..08a27af8b3 100644 --- a/config/rootfiles/core/124/filelists/files +++ b/config/rootfiles/core/124/filelists/files @@ -3,7 +3,9 @@ etc/issue etc/rc.d/helper/aws-setup etc/rc.d/init.d/aws etc/rc.d/init.d/localnet +etc/rc.d/init.d/networking/red.down/10-static-routes etc/rc.d/init.d/partresize +etc/rc.d/init.d/static-routes etc/sysctl.conf etc/unbound/unbound.conf opt/pakfire/lib/functions.pl diff --git a/src/initscripts/networking/red.down/10-static-routes b/src/initscripts/networking/red.down/10-static-routes index f8f00a7d12..650557a47c 100644 --- a/src/initscripts/networking/red.down/10-static-routes +++ b/src/initscripts/networking/red.down/10-static-routes @@ -1,4 +1,4 @@ #!/bin/bash -# Update the static routes. -exec /etc/rc.d/init.d/static-routes start +# Update the static routes +exec /etc/rc.d/init.d/static-routes reload diff --git a/src/initscripts/system/static-routes b/src/initscripts/system/static-routes index 940a7b45c7..84e3e3d296 100644 --- a/src/initscripts/system/static-routes +++ b/src/initscripts/system/static-routes @@ -42,7 +42,7 @@ function create_all_routes() { CONFIGFILE="/var/ipfire/main/routing" case "${1}" in - start) + start|reload) boot_mesg "Adding static routes..." # First, initialize the table @@ -61,7 +61,7 @@ case "${1}" in ;; *) - echo "Usage: ${0} {start|stop}" + echo "Usage: ${0} {start|stop|reload}" exit 1 ;; esac -- 2.39.2