From: Michael Tremer Date: Sat, 19 Jun 2010 13:14:46 +0000 (+0200) Subject: network: Change status output of ipv4-static hook. X-Git-Tag: 001~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54a70b3eeede0a01b23caf11f00fa4557dc2b4cc;p=network.git network: Change status output of ipv4-static hook. This will make the output more readable when there are IP addresses with different length. --- diff --git a/hooks/bridge.configs/ipv4-static b/hooks/bridge.configs/ipv4-static index 6ff7f7d8..d897660b 100755 --- a/hooks/bridge.configs/ipv4-static +++ b/hooks/bridge.configs/ipv4-static @@ -120,13 +120,13 @@ function _status() { config_read $(zone_dir ${zone})/${config} - echo -n " ${HOOK} - ${ADDRESS}/${PREFIX} - " + printf " %10s - " "${HOOK}" if zone_has_ipv4 ${zone} ${ADDRESS}/${PREFIX}; then - echo -ne "${COLOUR_OK}OK ${COLOUR_NORMAL}" + echo -ne "${COLOUR_OK} OK ${COLOUR_NORMAL}" else echo -ne "${COLOUR_ERROR}ERROR${COLOUR_NORMAL}" fi - echo # End line + echo " - ${ADDRESS}/${PREFIX}" if [ -n "${GATEWAY}" ]; then echo " Gateway: ${GATEWAY}"