summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-05-07 17:57:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-05-07 17:57:42 +0000
commit46db4df8662288a5282f52fe29d522142c021444 (patch)
tree30d13151c693e2f80a6ee8e3fe027a5a535c4730 /scripts
parent63acfaaadfcf85aaba0fb63b9a600d89819cd47b (diff)
Don't overwrite default file if it exists
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 6130c842..f375290c 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -8,4 +8,6 @@ EXTRA_DIST = bluepin bluetooth.init bluetooth.default create_dev
install-data-local:
$(INSTALL) -D -m 755 $(srcdir)/bluetooth.init $(DESTDIR)$(sysconfdir)/init.d/bluetooth
- $(INSTALL) -D -m 644 $(srcdir)/bluetooth.default $(DESTDIR)$(sysconfdir)/default/bluetooth
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/default
+ [ -f $(DESTDIR)$(sysconfdir)/default/bluetooth ] || \
+ $(INSTALL_DATA) $(srcdir)/bluetooth.default $(DESTDIR)$(sysconfdir)/default/bluetooth