summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@stsp.name>2016-03-06 09:03:44 +0100
committersarumpaet <sarumpaet@users.noreply.github.com>2016-11-05 02:05:56 +0100
commit27762fdabea92376e3e1af8e43fd432915c038e4 (patch)
tree26d6ed01852a33ea4abb93f489eabc4b23096fe8
parent497950bf2cc4bb38e2c70fb51afbcdb9609bf25c (diff)
Replace == operator in test with = operator.
Requested by bittorf in https://github.com/openwrt-routing/packages/pull/155 (cherry picked from commit cde0b2f81312df3153e67b46295051b34dc3904e)
-rw-r--r--olsrd/files/olsrd.init12
1 files changed, 6 insertions, 6 deletions
diff --git a/olsrd/files/olsrd.init b/olsrd/files/olsrd.init
index 87d6821..43c7e67 100644
--- a/olsrd/files/olsrd.init
+++ b/olsrd/files/olsrd.init
@@ -397,7 +397,7 @@ olsrd_write_olsrd() {
[ "$OLSRD_COUNT" -gt 0 ] && return 0
config_get ipversion "$cfg" IpVersion
- if [ "$UCI_CONF_NAME" == "olsrd6" ]; then
+ if [ "$UCI_CONF_NAME" = "olsrd6" ]; then
OLSRD_OLSRD_SCHEMA="$OLSRD_OLSRD_SCHEMA IpVersion=6"
if [ "$ipversion" = "6and4" ]; then
error "IpVersion 6and4 not supported in olsrd6"
@@ -703,7 +703,7 @@ olsrd_setup_smartgw_rules() {
IP6T=$(which ip6tables)
# Delete smartgw firewall rules first
- if [ "$UCI_CONF_NAME" == "olsrd6" ]; then
+ if [ "$UCI_CONF_NAME" = "olsrd6" ]; then
while $IP6T -D forwarding_rule -o tnl_+ -j ACCEPT 2> /dev/null; do :;done
for IFACE in $wanifnames; do
while $IP6T -D forwarding_rule -i tunl0 -o $IFACE -j ACCEPT 2> /dev/null; do :; done
@@ -722,10 +722,10 @@ olsrd_setup_smartgw_rules() {
while $IP4T -t nat -D postrouting_rule -o tnl_+ -j MASQUERADE 2> /dev/null; do :;done
fi
- if [ "$smartgateway" == "yes" ]; then
+ if [ "$smartgateway" = "yes" ]; then
log "$funcname() Notice: Inserting firewall rules for SmartGateway"
- if [ ! "$smartgatewayuplink" == "none" ]; then
- if [ "$smartgatewayuplink" == "ipv4" ]; then
+ if [ ! "$smartgatewayuplink" = "none" ]; then
+ if [ "$smartgatewayuplink" = "ipv4" ]; then
# Allow everything to be forwarded to tnl_+ and use NAT for it
$IP4T -I forwarding_rule -o tnl_+ -j ACCEPT
$IP4T -t nat -I postrouting_rule -o tnl_+ -j MASQUERADE
@@ -739,7 +739,7 @@ olsrd_setup_smartgw_rules() {
for IFACE in $ifsglobal; do
$IP4T -I input_rule -i $IFACE -p 4 -j ACCEPT
done
- elif [ "$smartgatewayuplink" == "ipv6" ]; then
+ elif [ "$smartgatewayuplink" = "ipv6" ]; then
$IP6T -I forwarding_rule -o tnl_+ -j ACCEPT
if [ "$nowan"="0" ]; then
for IFACE in $wanifnames; do