From: Michael Tremer Date: Sat, 26 Mar 2016 18:46:42 +0000 (+0000) Subject: modem: Show mobile network status even when not connected X-Git-Tag: 008~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a59ef968a0aef37c93819d297125f584b01cbe21;p=network.git modem: Show mobile network status even when not connected Signed-off-by: Michael Tremer --- diff --git a/src/hooks/zones/modem b/src/hooks/zones/modem index 1bb5efe2..b9f88d49 100644 --- a/src/hooks/zones/modem +++ b/src/hooks/zones/modem @@ -197,12 +197,6 @@ hook_status() { cli_print_fmt1 2 "MTU/MRU" "${MTU}" cli_space - # Exit if zone is down - if ! zone_is_up ${zone}; then - echo # Empty line - exit ${EXIT_ERROR} - fi - cli_headline 2 "Carrier network" # If the device and the monitor device are both locked, @@ -238,6 +232,12 @@ hook_status() { fi cli_space + # Exit if zone is down + if ! zone_is_up ${zone}; then + echo # Empty line + exit ${EXIT_ERROR} + fi + # XXX display time since connection started cli_headline 2 "Point-to-Point-over-Ethernet protocol"