mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
avahi: always start if not cinfigured via settings addon
This commit is contained in:
parent
bdcbca1be2
commit
e926e9591d
0
packages/network/avahi/default.d/avahi.conf
Normal file
0
packages/network/avahi/default.d/avahi.conf
Normal file
@ -101,12 +101,16 @@ post_makeinstall_target() {
|
|||||||
rm -f $INSTALL/usr/bin/avahi-bookmarks
|
rm -f $INSTALL/usr/bin/avahi-bookmarks
|
||||||
rm -f $INSTALL/usr/bin/avahi-publish*
|
rm -f $INSTALL/usr/bin/avahi-publish*
|
||||||
rm -f $INSTALL/usr/bin/avahi-resolve*
|
rm -f $INSTALL/usr/bin/avahi-resolve*
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/share/services
|
||||||
|
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
add_user avahi x 495 495 "avahi-daemon" "/var/run/avahi-daemon" "/bin/sh"
|
add_user avahi x 495 495 "avahi-daemon" "/var/run/avahi-daemon" "/bin/sh"
|
||||||
add_group avahi 495
|
add_group avahi 495
|
||||||
|
|
||||||
|
enable_service avahi-defaults.service
|
||||||
enable_service avahi-daemon.service
|
enable_service avahi-daemon.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Avahi Daemon
|
Description=Avahi Daemon
|
||||||
After=syslog.target
|
After=syslog.target avahi-defaults.service
|
||||||
|
Requires=avahi-defaults.service
|
||||||
|
|
||||||
ConditionPathExists=/storage/.cache/services/avahi.conf
|
ConditionPathExists=/storage/.cache/services/avahi.conf
|
||||||
|
|
||||||
|
11
packages/network/avahi/system.d/avahi-defaults.service
Normal file
11
packages/network/avahi/system.d/avahi-defaults.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Avahi defaults
|
||||||
|
After=local-fs.target
|
||||||
|
|
||||||
|
ConditionPathExists=!/storage/.cache/services/avahi.conf
|
||||||
|
ConditionPathExists=!/storage/.cache/services/avahi.disabled
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/sh -c 'cp /usr/share/services/avahi.conf /storage/.cache/services'
|
||||||
|
RemainAfterExit=yes
|
Loading…
x
Reference in New Issue
Block a user