From 0a79ea0214c06742db7d2e14f9946bebf387db53 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 18 Jun 2010 19:54:16 +0200 Subject: [PATCH] network: Make code shorter (no functional changes). --- network | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/network b/network index b1ed3b7b..c683da69 100755 --- 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) -- 2.39.2