File tree Expand file tree Collapse file tree
examples/gnrc_border_router Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ start_radvd() {
6262}
6363
6464start_zep_dispatch () {
65- ${ZEP_DISPATCH} :: " ${ZEP_PORT_BASE} " > /dev/null &
65+ ${ZEP_DISPATCH} ${ZEP_DISPATCH_FLAGS} :: " ${ZEP_PORT_BASE} " > /dev/null &
6666 ZEP_DISPATCH_PID=$!
6767}
6868
9595 USE_ZEP_DISPATCH=0
9696fi
9797
98+ if [ " $1 " = " -t" ] || [ " $1 " = " --topology" ]; then
99+ ZEP_DISPATCH_FLAGS+=" -t $2 "
100+ shift 2
101+ fi
102+
103+ if [ " $1 " = " -w" ] || [ " $1 " = " --monitor" ]; then
104+ modprobe mac802154_hwsim
105+ ZEP_DISPATCH_FLAGS+=" -w wpan0 "
106+ shift 1
107+ fi
108+
98109ELFFILE=$1
99110PREFIX=$2
100111shift 2
Original file line number Diff line number Diff line change 2323# enable the ZEP dispatcher
2424FLAGS_EXTRAS += -z $(ZEP_PORT_BASE)
2525
26+ ifneq (, $(ZEP_TOPO_FILE))
27+ FLAGS_EXTRAS += --topology $(ZEP_TOPO_FILE)
28+ endif
29+
30+ ifeq (1, $(ZEP_MONITOR))
31+ FLAGS_EXTRAS += --monitor
32+ endif
33+
2634# Configure terminal parameters
2735TERMDEPS += host-tools
2836TERMPROG_FLAGS = $(FLAGS_EXTRAS) $(ELFFILE) $(IPV6_PREFIX)
You can’t perform that action at this time.
0 commit comments