mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-30 14:10:57 +00:00
Revert "mdnstool: add support for a "hybrid" network mode"
This reverts commit 67205f62d9
.
This commit is contained in:
parent
47ff9eb817
commit
3ee0d40dd2
@ -17,16 +17,11 @@ 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 ${INTF} -hostname ${HOSTNAME}
|
-- -if eth0 -hostname ${HOSTNAME}
|
||||||
|
|
||||||
eend $? "Failed to start mDNS server"
|
eend $? "Failed to start mDNS server"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user