Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Wed, 07 Aug 2019 15:46:20
Message-Id: 1565190224.e0cf0e07688cd3991f6af20f2f27c0d278ebf069.whissi@gentoo
1 commit: e0cf0e07688cd3991f6af20f2f27c0d278ebf069
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 6 20:08:07 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 7 15:03:44 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e0cf0e07
7
8 initrd.scripts: kill_network(): Make use of good_msg_n()
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 defaults/initrd.scripts | 16 ++++++----------
13 1 file changed, 6 insertions(+), 10 deletions(-)
14
15 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
16 index 88046b4..febdadf 100644
17 --- a/defaults/initrd.scripts
18 +++ b/defaults/initrd.scripts
19 @@ -2047,8 +2047,7 @@ kill_network() {
20 # interface.
21 if ipv6_tentative
22 then
23 - [ -z "${QUIET}" ] && \
24 - printf "%b" "${WARN}**${NORMAL}${BOLD} Waiting for tentative IPv6 addresses to complete DAD ${NORMAL}..."
25 + [ -z "${QUIET}" ] && good_msg_n "Waiting for tentative IPv6 addresses to complete DAD ..."
26
27 local dad_timeout=10
28 while [ ${dad_timeout} -gt 0 ]
29 @@ -2056,11 +2055,10 @@ kill_network() {
30 ipv6_tentative || break
31 sleep 1
32 : $(( dad_timeout -= 1 ))
33 - [ -z "${QUIET}" ] && \
34 - printf "."
35 + [ -z "${QUIET}" ] && printf "."
36 done
37
38 - echo ""
39 + [ -z "${QUIET}" ] && echo ''
40
41 if [ ${dad_timeout} -le 0 ]
42 then
43 @@ -2068,8 +2066,7 @@ kill_network() {
44 fi
45 fi
46
47 - [ -z "${QUIET}" ] && \
48 - printf "%b" "${GOOD}>>${NORMAL}${BOLD} Bringing down interface ${GK_NET_IFACE} ${NORMAL}..."
49 + [ -z "${QUIET}" ] && good_msg_n "Bringing down interface ${GK_NET_IFACE} ..."
50
51 local deconfiguration_timeout=${GK_NET_TIMEOUT_DECONFIGURATION}
52 while [ ${deconfiguration_timeout} -gt 0 ]
53 @@ -2083,11 +2080,10 @@ kill_network() {
54 fi
55 sleep 1
56 : $(( deconfiguration_timeout -= 1 ))
57 - [ -z "${QUIET}" ] && \
58 - printf "."
59 + [ -z "${QUIET}" ] && printf "."
60 done
61
62 - echo ""
63 + [ -z "${QUIET}" ] && echo ''
64
65 if [ ${deconfiguration_timeout} -le 0 ]
66 then