mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
avahi: wait for network on startup and restart after crash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
085290e7ef
commit
50f99af168
@ -23,11 +23,12 @@
|
|||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
(
|
(
|
||||||
# sleep 10 sec to be ensure network is started
|
wait_for_inet_addr
|
||||||
usleep 10000000
|
|
||||||
|
|
||||||
progress "Starting Avahi Daemon"
|
progress "Starting Avahi Daemon"
|
||||||
|
|
||||||
mkdir -p /var/run/avahi-daemon
|
mkdir -p /var/run/avahi-daemon
|
||||||
avahi-daemon -D
|
while true; do
|
||||||
|
sleep 2
|
||||||
|
avahi-daemon
|
||||||
|
done
|
||||||
)&
|
)&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user