From ac4645627320e3091b13290f381fa45b694f6516 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Tue, 28 Jan 2014 07:49:33 +0400 Subject: [PATCH] cosmetic --- ulib/debian | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ulib/debian b/ulib/debian index c125cda..8af28cf 100644 --- a/ulib/debian +++ b/ulib/debian @@ -318,24 +318,24 @@ function __network_set_mainip() { # des adresses actuelles, principale et supplémentaire eval "$(ip addr show dev "$1" | awk "BEGIN { mainipvar = \"${2:-mainip}\" - netmaskvar = \"${3:-netmask}\" + suffixvar = \"${3:-suffix}\" broadcastvar = \"${4:-broadcast}\" "' print mainipvar "=" - print netmaskvar "=" + print suffixvar "=" print broadcastvar "=" } $1 == "inet" { - mainip = ""; netmask = ""; broadcast = "" + mainip = ""; suffix = ""; broadcast = "" if (match($0, "inet ([^ ]*)/([^ ]*) ", vs) != 0) { mainip = vs[1] - netmask = vs[2] + suffix = vs[2] } if (match($0, "brd ([^ ]*) ", vs) != 0) { broadcast = vs[1] } print mainipvar "=\"" mainip "\"" - print netmaskvar "=\"" netmask "\"" + print suffixvar "=\"" suffix "\"" print broadcastvar "=\"" broadcast "\"" exit 0 }')"