diff --git a/Makefile.am b/Makefile.am index f9ac8ef8..c016d98a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,12 +38,12 @@ if USE_DNS_SD shairport_sync_SOURCES += mdns_dns_sd.c endif -if INSTALL_INITSCRIPT install-exec-hook: if INSTALL_CONFIG_FILES cp scripts/shairport-sync.conf /etc/shairport-sync.conf.sample [ -f /etc/shairport-sync.conf ] || cp scripts/shairport-sync.conf /etc/shairport-sync.conf endif +if INSTALL_INITSCRIPT [ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync /etc/init.d/ update-rc.d shairport-sync defaults 90 10 endif