Separate installin an initscript from installing configuration files.

This commit is contained in:
Mike Brady
2015-05-04 17:11:13 +01:00
parent e02be8a6ae
commit 3a93b4ae06
+1 -1
View File
@@ -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