From: Michael Tremer Date: Fri, 18 Jun 2010 17:54:16 +0000 (+0200) Subject: network: Make code shorter (no functional changes). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daf4dfca254b9d046635aa45b5055082370951f;p=ipfire-3.x.git network: Make code shorter (no functional changes). --- diff --git a/pkgs/core/network/src/network b/pkgs/core/network/src/network index b1ed3b7bb..c683da69e 100755 --- a/pkgs/core/network/src/network +++ b/pkgs/core/network/src/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)