]> git.ipfire.org Git - people/ms/network.git/commitdiff
modem: Show mobile network status even when not connected
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Mar 2016 18:46:42 +0000 (18:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Mar 2016 18:46:42 +0000 (18:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/zones/modem

index 1bb5efe2404221018b9157880e8826564972a47c..b9f88d49f51d33fcab664895b4f035b20a7fca8b 100644 (file)
@@ -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"