From: Michael Tremer Date: Fri, 18 Jun 2010 17:54:16 +0000 (+0200) Subject: network: Make code shorter (no functional changes). X-Git-Tag: 001~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a79ea0214c06742db7d2e14f9946bebf387db53;p=network.git network: Make code shorter (no functional changes). --- 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)