1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sliptty/start_network.sh: fix with DHCPv6

The `start_network.sh` script creates a `${TUN}` interface, so
the `${TAP}` variable will always be empty.

This means start_dhcpd() will always fail as the DHCPv6 script is lacking
an interface.
This commit is contained in:
Benjamin Valentin 2020-04-07 21:15:07 +02:00
parent d8045abdb6
commit 079aea8775

View File

@ -107,7 +107,7 @@ start_uhcpd() {
start_dhcpd() {
DHCPD_PIDFILE=$(mktemp)
${DHCPD} -d -p ${DHCPD_PIDFILE} ${TAP} ${PREFIX} 2> /dev/null
${DHCPD} -d -p ${DHCPD_PIDFILE} ${TUN} ${PREFIX} 2> /dev/null
}
usage() {