When RED is brought down, we will reload all static routes.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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
#!/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
CONFIGFILE="/var/ipfire/main/routing"
case "${1}" in
- start)
+ start|reload)
boot_mesg "Adding static routes..."
# First, initialize the table
;;
*)
- echo "Usage: ${0} {start|stop}"
+ echo "Usage: ${0} {start|stop|reload}"
exit 1
;;
esac