1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
scriptdir=@datadir_int@
script_SCRIPTS = file.sh load.sh netload.sh ping.sh ppp.sh size.sh startup.sh
EXTRA_DIST = $(script_SCRIPTS) ledcontrol.conf.sample
install-data-local:
@#
@# Smart installation of ledcontrol.conf, don't overwrite.
@#
mkdir -p "$(DESTDIR)@sysconfdir_int@"
@if test -e "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ; then \
if ! diff ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" 1>/dev/null 2>/dev/null; then \
echo $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf.sample" ;\
$(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf.sample" ;\
echo LEDCCONF >> /tmp/MSG.ledcontrol ;\
fi ;\
else \
echo $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ;\
$(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ;\
echo LEDCCONFNEW >> /tmp/MSG.ledcontrol ;\
fi
|