Add install-exec-hook script to install /etc/shairport-sync.conf.example and shairport-sync.conf if it's not already there.

This commit is contained in:
Mike Brady
2015-04-27 16:51:04 +00:00
parent 69e0610519
commit 33d5215d73
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -40,6 +40,8 @@ endif
if INSTALL_INITSCRIPT
install-exec-hook:
cp scripts/shairport-sync.conf /etc/shairport-sync.conf.sample
[ -f /etc/shairport-sync.conf ] || cp scripts/shairport-sync.conf /etc/shairport-sync.conf
[ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync /etc/init.d/
update-rc.d shairport-sync defaults 90 10
endif
+1 -1
View File
@@ -16,7 +16,7 @@ general =
// log_verbosity = 0; // "0" means no verbosity, "3" is highest.
};
latency =
latencies =
{
// default = 88200;
// itunes = 99400;