HD-Fox T2
zeroconf 1.5-2
CFW 3.03
I found that the IP address advertised by mdnsd wasn't updated after making a WiFi connection.
At startup the ethernet interface eth0 is assigned the address 192.0.2.100 (even though eth0 is not connected - which seems like a bug in itself) and mdnsd advertises this address. When the wifi connection is established eth0, being disconnected, is disabled and wlan0 acquires a valid IP address through DHCP. However an attempt to connect to the HD Fox as humax.local still tries to use 192.0.2.100.
I modified /mod/etc/init.d/S80mdnsd to detect changes to /etc/hosts as follows, which fixed the problem. Doubtless there is a less kludgey solution, eg not requiring S80mdnsd to hang around.
And with my 1st post, many thanks to all those who have contributed to the impressive HD/HDR-Fox T2 customised firmware ecosystem.
zeroconf 1.5-2
CFW 3.03
I found that the IP address advertised by mdnsd wasn't updated after making a WiFi connection.
At startup the ethernet interface eth0 is assigned the address 192.0.2.100 (even though eth0 is not connected - which seems like a bug in itself) and mdnsd advertises this address. When the wifi connection is established eth0, being disconnected, is disabled and wlan0 acquires a valid IP address through DHCP. However an attempt to connect to the HD Fox as humax.local still tries to use 192.0.2.100.
I modified /mod/etc/init.d/S80mdnsd to detect changes to /etc/hosts as follows, which fixed the problem. Doubtless there is a less kludgey solution, eg not requiring S80mdnsd to hang around.
Code:
line 12-
+ first=
+ while [ -z "$first" ] || inotifywait -e modify /etc/hosts; do
+ first=no
interface="`/sbin/route | /bin/sed -n '$ {
s/.* //
p
}'`"
echo " MDNS interface: [$interface]"
- [ -z "$interface" ] && interface=eth0
+ [ -z "$interface" -o "$interface" = "Iface" ] && interface=eth0
/bin/ip route add 224.0.0.0/4 dev $interface
+ killall -q mdnsd
+ /mod/sbin/mdnsd &
+ done
Last edited: