Separate installin an initscript from installing configuration files.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user