mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 19:54:38 +00:00
commit
51576d7564
@ -4,3 +4,7 @@ iface lo inet loopback
|
|||||||
auto eth0
|
auto eth0
|
||||||
iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
udhcpc_opts -T 1 -A 3
|
udhcpc_opts -T 1 -A 3
|
||||||
|
|
||||||
|
auto eth1
|
||||||
|
iface eth1 inet dhcp
|
||||||
|
udhcpc_opts -T 1 -A 3
|
||||||
|
@ -17,11 +17,16 @@ start()
|
|||||||
hostname -F /etc/hostname
|
hostname -F /etc/hostname
|
||||||
export HOSTNAME=$(hostname -s).local.
|
export HOSTNAME=$(hostname -s).local.
|
||||||
|
|
||||||
|
INTF=eth0
|
||||||
|
if [ "$(mobyconfig get network)" = "hybrid" ]; then
|
||||||
|
INTF=eth1
|
||||||
|
fi
|
||||||
|
|
||||||
start-stop-daemon --start --quiet \
|
start-stop-daemon --start --quiet \
|
||||||
--background \
|
--background \
|
||||||
--exec /sbin/mdnstool \
|
--exec /sbin/mdnstool \
|
||||||
--make-pidfile --pidfile ${PIDFILE} \
|
--make-pidfile --pidfile ${PIDFILE} \
|
||||||
-- -if eth0 -hostname ${HOSTNAME}
|
-- -if ${INTF} -hostname ${HOSTNAME}
|
||||||
|
|
||||||
eend $? "Failed to start mDNS server"
|
eend $? "Failed to start mDNS server"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user