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 <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-09-13 14:37:51 +01:00
parent 614764e58a
commit b8fdc7398c
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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