Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: net/
Date: Wed, 28 Dec 2011 20:32:26
Message-Id: b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a.robbat2@gentoo
1 commit: b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 20:31:02 2011 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 20:32:10 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=b12cb2f5
7
8 net/iproute2: POSIX sh compatability: ${x/a/b} invalid
9
10 The ${x/a/b} shell construct is NOT defined in the POSIX specification,
11 it's a bash addition.
12
13 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
14
15 ---
16 net/iproute2.sh | 2 +-
17 1 files changed, 1 insertions(+), 1 deletions(-)
18
19 diff --git a/net/iproute2.sh b/net/iproute2.sh
20 index 693efe0..bb52e98 100644
21 --- a/net/iproute2.sh
22 +++ b/net/iproute2.sh
23 @@ -138,7 +138,7 @@ _add_address()
24
25 # figure out the broadcast address if it is not specified
26 # This must NOT be set for IPv6 addresses
27 - if [ "${address/:}" = "${address}" ]; then
28 + if [ "${address#*:}" = "${address}" ]; then
29 [ -z "$broadcast" ] && broadcast="+"
30 elif [ -n "$broadcast" ]; then
31 eerror "Broadcast keywords are not valid with IPv6 addresses"