Skip to content

Commit 15b0f59

Browse files
committed
Add cp -n option to avoid clobbering existing, probably customized, configuration files.
1 parent 607ae3b commit 15b0f59

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Makefile.linux

+11-5
Original file line numberDiff line numberDiff line change
@@ -613,19 +613,22 @@ install : $(APPS) direwolf.conf tocalls.txt symbols-new.txt symbolsX.txt dw-icon
613613
@echo " "
614614

615615

616+
# Put sample configuration files in home directory.
616617
# These would be done as ordinary user.
617618

618619
# The Raspberry Pi has ~/Desktop but Ubuntu does not.
619620

620621
# TODO: Handle Linux variations correctly.
621622

623+
# Version 1.4 - Add "-n" option to avoid clobbering existing, probably customized, config files.
624+
622625

623626
.PHONY: install-conf
624627
install-conf : direwolf.conf
625-
cp direwolf.conf ~
626-
cp sdr.conf ~
627-
cp telemetry-toolkit/telem-m0xer-3.txt ~
628-
cp telemetry-toolkit/telem-*.conf ~
628+
cp -n direwolf.conf ~
629+
cp -n sdr.conf ~
630+
cp -n telemetry-toolkit/telem-m0xer-3.txt ~
631+
cp -n telemetry-toolkit/telem-*.conf ~
629632
ifneq ($(wildcard $(HOME)/Desktop),)
630633
@echo " "
631634
@echo "This will add a desktop icon on some systems:"
@@ -635,10 +638,13 @@ ifneq ($(wildcard $(HOME)/Desktop),)
635638
endif
636639

637640

641+
# dw-start.sh is greatly improved in version 1.4.
642+
# It should probably be part of install-conf because it is not just for the RPi.
643+
638644
.PHONY: install-rpi
639645
install-rpi : dw-start.sh
640646
chmod +x dw-start.sh
641-
cp dw-start.sh ~
647+
cp -n dw-start.sh ~
642648
ln -f -s /usr/share/applications/direwolf.desktop ~/Desktop/direwolf.desktop
643649

644650

0 commit comments

Comments
 (0)