projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc357aa
)
6in4/6in4.sh: remove some bashism (usage of [[)
author
Sven Roederer
<
[email protected]
>
Wed, 25 Dec 2019 17:43:45 +0000
(18:43 +0100)
committer
Adrian Schmutzler
<
[email protected]
>
Sun, 26 Jan 2020 21:02:51 +0000
(22:02 +0100)
"[[" is a bash extension for test. As the ash-implementation is not
fully compatible we drop its usage.
Signed-off-by: Sven Roederer <
[email protected]
>
package/network/ipv6/6in4/files/6in4.sh
patch
|
blob
|
history
diff --git
a/package/network/ipv6/6in4/files/6in4.sh
b/package/network/ipv6/6in4/files/6in4.sh
index 0f631b78ba56609c2ff2cd11d271e8b18e8c636d..5b5c7b36af9cd18732a6958ec28d21dc37885137 100755
(executable)
--- a/
package/network/ipv6/6in4/files/6in4.sh
+++ b/
package/network/ipv6/6in4/files/6in4.sh
@@
-75,7
+75,7
@@
proto_6in4_setup() {
[ -n "$ip6addr" ] && {
local local6="${ip6addr%%/*}"
local mask6="${ip6addr##*/}"
- [
[ "$local6" = "$mask6" ]
] && mask6=
+ [
"$local6" = "$mask6"
] && mask6=
proto_add_ipv6_address "$local6" "$mask6"
proto_add_ipv6_route "::" 0 "" "" "" "$local6/$mask6"
}