Skip to content

Commit 08c8444

Browse files
committed
Added default value for backbone interface
1 parent f288cee commit 08c8444

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ The command line options with default values are shown in the following table.
3232
| NAT64 Prefix | --nat64-prefix | 64:ff9b::/96 |
3333
| Default prefix route | --disable-default-prefix-route | Enabled |
3434
| Default prefix slaac | --disable-default-prefix-slaac | Enabled |
35-
| Backbone Interface | --backbone-interface | |
35+
| Backbone Interface | --backbone-interface | eth0 |
3636
| MQTT Broker | --broker | mqtt.eclipseprojects.io |

docker_entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function parse_args()
4545
shift
4646
;;
4747
--backbone-interface | -B)
48-
BACKBONE_INTERFACE_ARG="-B $2"
48+
BACKBONE_INTERFACE=$2
4949
shift
5050
shift
5151
;;
@@ -110,6 +110,7 @@ parse_args "$@"
110110

111111
[ -n "$RADIO_URL" ] || RADIO_URL="spinel+hdlc+uart:///dev/ttyACM0"
112112
[ -n "$TUN_INTERFACE_NAME" ] || TUN_INTERFACE_NAME="wpan0"
113+
[ -n "$BACKBONE_INTERFACE" ] || BACKBONE_INTERFACE="eth0"
113114
[ -n "$AUTO_PREFIX_ROUTE" ] || AUTO_PREFIX_ROUTE=true
114115
[ -n "$AUTO_PREFIX_SLAAC" ] || AUTO_PREFIX_SLAAC=true
115116
[ -n "$NAT64_PREFIX" ] || NAT64_PREFIX="64:ff9b::/96"
@@ -125,7 +126,7 @@ parse_args "$@"
125126

126127
echo "RADIO_URL:" $RADIO_URL
127128
echo "TUN_INTERFACE_NAME:" $TUN_INTERFACE_NAME
128-
echo "BACKBONE_INTERFACE: $BACKBONE_INTERFACE_ARG"
129+
echo "BACKBONE_INTERFACE:" $BACKBONE_INTERFACE
129130
echo "NAT64_PREFIX:" $NAT64_PREFIX
130131
echo "AUTO_PREFIX_ROUTE:" $AUTO_PREFIX_ROUTE
131132
echo "AUTO_PREFIX_SLAAC:" $AUTO_PREFIX_SLAAC
@@ -139,7 +140,7 @@ sed -i "s/^BrokerName=.*$/BrokerName=$BROKER_NAME/" /app/gateway.conf
139140
sed -i "s/^GatewayUDP6Hops=.*$/GatewayUDP6Hops=64/" /app/gateway.conf
140141
sed -i "s/^GatewayUDP6Port=.*$/GatewayUDP6Port=47193/" /app/gateway.conf
141142

142-
echo "OTBR_AGENT_OPTS=\"-I $TUN_INTERFACE_NAME $BACKBONE_INTERFACE_ARG -d7 $RADIO_URL\"" >/etc/default/otbr-agent
143+
echo "OTBR_AGENT_OPTS=\"-I $TUN_INTERFACE_NAME -B $BACKBONE_INTERFACE -d7 $RADIO_URL\"" >/etc/default/otbr-agent
143144
echo "OTBR_WEB_OPTS=\"-I $TUN_INTERFACE_NAME -d7 -p 80\"" >/etc/default/otbr-web
144145

145146
echo "net.ipv6.conf.all.disable_ipv6=0" >> /etc/sysctl.conf

0 commit comments

Comments
 (0)