]> git.ipfire.org Git - people/stevee/network.git/blobdiff - network
route: Add code to apply static route configuration.
[people/stevee/network.git] / network
diff --git a/network b/network
index a393d357d233589e956e6435fa4d38389958b61f..1c642721b6989977235bbc882021c055330129b3 100755 (executable)
--- a/network
+++ b/network
@@ -579,6 +579,7 @@ function cli_route() {
                # List all routes.
                list)
                        route_list $@
+                       return ${EXIT_OK}
                        ;;
                *)
                        error "Unrecognized action: ${action}"
@@ -588,6 +589,9 @@ function cli_route() {
                        ;;
        esac
 
+       # Applying all routes.
+       route_apply
+
        exit ${EXIT_OK}
 }