From a59ef968a0aef37c93819d297125f584b01cbe21 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 26 Mar 2016 18:46:42 +0000 Subject: [PATCH] modem: Show mobile network status even when not connected Signed-off-by: Michael Tremer --- src/hooks/zones/modem | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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" -- 2.39.2