@@ -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
126127echo " RADIO_URL:" $RADIO_URL
127128echo " TUN_INTERFACE_NAME:" $TUN_INTERFACE_NAME
128- echo " BACKBONE_INTERFACE: $BACKBONE_INTERFACE_ARG "
129+ echo " BACKBONE_INTERFACE:" $BACKBONE_INTERFACE
129130echo " NAT64_PREFIX:" $NAT64_PREFIX
130131echo " AUTO_PREFIX_ROUTE:" $AUTO_PREFIX_ROUTE
131132echo " AUTO_PREFIX_SLAAC:" $AUTO_PREFIX_SLAAC
@@ -139,7 +140,7 @@ sed -i "s/^BrokerName=.*$/BrokerName=$BROKER_NAME/" /app/gateway.conf
139140sed -i " s/^GatewayUDP6Hops=.*$/GatewayUDP6Hops=64/" /app/gateway.conf
140141sed -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
143144echo " OTBR_WEB_OPTS=\" -I $TUN_INTERFACE_NAME -d7 -p 80\" " > /etc/default/otbr-web
144145
145146echo " net.ipv6.conf.all.disable_ipv6=0" >> /etc/sysctl.conf
0 commit comments