]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
static-routes: Make it clear that we are reloading routes
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Sep 2018 13:37:51 +0000 (14:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Sep 2018 14:03:59 +0000 (15:03 +0100)
When RED is brought down, we will reload all static routes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/124/filelists/files
src/initscripts/networking/red.down/10-static-routes
src/initscripts/system/static-routes

index cfd300dcece717ca7d25b3cd6b30305169471a29..08a27af8b373f724fee9545d85cadb1ba3a7460a 100644 (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
index f8f00a7d1287319714f3b6d9cb6938ef3fffd945..650557a47cbc50633c30d2c0f2a20ab3e6227b66 100644 (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
index 940a7b45c7e4e8555111448b112e42d268a1ba5f..84e3e3d2964e2b4a966fff7c92fbeec83d8bd820 100644 (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