diff --git a/alpine/etc/network/interfaces b/alpine/etc/network/interfaces index 22229ad74..79c0fa716 100644 --- a/alpine/etc/network/interfaces +++ b/alpine/etc/network/interfaces @@ -4,3 +4,7 @@ iface lo inet loopback auto eth0 iface eth0 inet dhcp udhcpc_opts -T 1 -A 3 + +auto eth1 +iface eth1 inet dhcp + udhcpc_opts -T 1 -A 3 diff --git a/alpine/packages/mdnstool/etc/init.d/mdnstool b/alpine/packages/mdnstool/etc/init.d/mdnstool index 8de55f952..031324973 100755 --- a/alpine/packages/mdnstool/etc/init.d/mdnstool +++ b/alpine/packages/mdnstool/etc/init.d/mdnstool @@ -17,11 +17,16 @@ start() hostname -F /etc/hostname export HOSTNAME=$(hostname -s).local. + INTF=eth0 + if [ "$(mobyconfig get network)" = "hybrid" ]; then + INTF=eth1 + fi + start-stop-daemon --start --quiet \ --background \ --exec /sbin/mdnstool \ --make-pidfile --pidfile ${PIDFILE} \ - -- -if eth0 -hostname ${HOSTNAME} + -- -if ${INTF} -hostname ${HOSTNAME} eend $? "Failed to start mDNS server" }