From: Michael Tremer Date: Thu, 4 Sep 2014 18:59:49 +0000 (+0200) Subject: network status: Show if zones are enabled to start at boot X-Git-Tag: 007~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f139f146a87ea1f9fa32093ed7f50a11dc3cfd1f;p=network.git network status: Show if zones are enabled to start at boot --- diff --git a/src/functions/functions.cli b/src/functions/functions.cli index 3389b410..ca60d143 100644 --- a/src/functions/functions.cli +++ b/src/functions/functions.cli @@ -79,7 +79,19 @@ function cli_device_headline() { # Print the hook for all zones. if [ "${type}" = "zone" ]; then - headline_prefix="${headline_prefix} ($(zone_get_hook ${device}))" + local enabled + zone_is_enabled "${device}" + case "$?" in + ${EXIT_TRUE}) + enabled="enabled" + ;; + ${EXIT_FALSE}) + enabled="disabled" + ;; + esac + + local hook="$(zone_get_hook "${device}")" + headline_prefix="${headline_prefix} (${enabled}, ${hook})" fi cli_headline 1 "${headline_prefix}"