]> git.ipfire.org Git - people/ms/network.git/blobdiff - network
network: Make code shorter (no functional changes).
[people/ms/network.git] / network
diff --git a/network b/network
index b1ed3b7bbc2adb4df7e0edf2a281bd65707434f8..c683da69e2e64773821642c983cd8f3e4a03e080 100755 (executable)
--- a/network
+++ b/network
@@ -38,32 +38,8 @@ done
 
 # Process the given action
 case "${action}" in
-       config)
-               cli_config $@
-               ;;
-
-       device)
-               cli_device $@
-               ;;
-
-       zone)
-               cli_zone $@
-               ;;
-
-       start)
-               cli_start $@
-               ;;
-
-       stop)
-               cli_stop $@
-               ;;
-
-       restart)
-               cli_restart $@
-               ;;
-
-       status)
-               cli_status $@
+       config|device|zone|start|stop|restart|status)
+               cli_${action} $@
                ;;
 
        ""|help|--help|-h)