]> git.ipfire.org Git - people/stevee/network.git/blobdiff - hooks/zones/6to4-tunnel
Approach for better status output.
[people/stevee/network.git] / hooks / zones / 6to4-tunnel
index cfa7cb929815a8786380129ed6faae9feceb6a20..a45f2f999220354134223d9c8488dc0c87b97521 100755 (executable)
@@ -109,7 +109,7 @@ function _status() {
        local zone=${1}
        assert isset zone
 
-       cli_status_headline ${zone}
+       cli_device_headline ${zone}
 
        zone_config_read ${zone}
 
@@ -119,11 +119,11 @@ function _status() {
                server_line="${server_line} (Hostname: ${server_hostname})"
        fi
 
-       cli_headline "  Configuration:"
-       printf "${DEVICE_PRINT_LINE1}" "Server:" "${server_line}"
-       printf "${DEVICE_PRINT_LINE1}" "Endpoint IPv4 address:" "${LOCAL_ADDRESS}"
-       printf "${DEVICE_PRINT_LINE1}" "Endpoint IPv6 address:" "${LOCAL_ADDRESS6}"
-       echo
+       cli_headline 2 "Configuration"
+       cli_print_fmt1 2 "Server" "${server_line}"
+       cli_print_fmt1 2 "Endpoint IPv4 address" "${LOCAL_ADDRESS}"
+       cli_print_fmt1 2 "Endpoint IPv6 address" "${LOCAL_ADDRESS6}"
+       cli_space
 
        exit ${EXIT_OK}
 }