From e6d8dee0715ad11244136172e148d74526592201 Mon Sep 17 00:00:00 2001 From: hanjinpeng Date: Wed, 16 Sep 2026 09:15:43 -0400 Subject: [PATCH] ifup-routes: only skip the invalid route file handle_file() called exit when the route entries of a file did not start with ADDRESS0. Although the warning says the file is skipped, the whole script terminated, so the remaining route files and all rule-* and rule6-* files of the device were not applied either. Return from the function instead. --- network-scripts/ifup-routes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-scripts/ifup-routes b/network-scripts/ifup-routes index 902be609..91ba30bf 100755 --- a/network-scripts/ifup-routes +++ b/network-scripts/ifup-routes @@ -18,7 +18,7 @@ handle_file () { # print a warning if ADDRESS is not starting at ADDRESS0 if [ "x$(eval echo '$'ADDRESS$routenum)x" == "xx" ]; then net_log $"Route entries are not sequentially ordered. Skipping $1 file" warning - exit 1 + return 1 fi while [ "x$(eval echo '$'ADDRESS$routenum)x" != "xx" ]; do