From: Michael Tremer Date: Fri, 22 Apr 2016 21:51:22 +0000 (+0000) Subject: route: Fail cleanly if the protocol cannot be detected X-Git-Tag: 008~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1008bbb9f11701e74edacdd18548973234b8f252;p=network.git route: Fail cleanly if the protocol cannot be detected Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.route b/src/functions/functions.route index 1870f964..1b097129 100644 --- a/src/functions/functions.route +++ b/src/functions/functions.route @@ -395,8 +395,11 @@ route_entry_add() { ipv4) command="ip route add" ;; + *) + log ERROR "Could not detect protocol for ${network}" + return ${EXIT_ERROR} + ;; esac - assert isset command # Add type. list_append command "${type}"