summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-12-28 20:31:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-12-28 20:32:10 +0000
commitb12cb2f507b8ba7acc64e0e8172eb26bae00dc0a (patch)
tree1a7b876ba53ddca057191509fec875a14c114e0f
parent1875db4ff6cdbed45f4375a2cc04f2fe55f25a32 (diff)
downloadopenrc-b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a.tar.gz
openrc-b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a.tar.bz2
openrc-b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a.tar.xz
net/iproute2: POSIX sh compatability: ${x/a/b} invalid
The ${x/a/b} shell construct is NOT defined in the POSIX specification, it's a bash addition. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--net/iproute2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 693efe0..bb52e98 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -138,7 +138,7 @@ _add_address()
# figure out the broadcast address if it is not specified
# This must NOT be set for IPv6 addresses
- if [ "${address/:}" = "${address}" ]; then
+ if [ "${address#*:}" = "${address}" ]; then
[ -z "$broadcast" ] && broadcast="+"
elif [ -n "$broadcast" ]; then
eerror "Broadcast keywords are not valid with IPv6 addresses"