From 54a70b3eeede0a01b23caf11f00fa4557dc2b4cc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 19 Jun 2010 15:14:46 +0200 Subject: [PATCH] network: Change status output of ipv4-static hook. This will make the output more readable when there are IP addresses with different length. --- hooks/bridge.configs/ipv4-static | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}" -- 2.47.2