Add installation of systemd files for opendv andempty config for gateway

This commit is contained in:
Geoffrey Merck F4FXL - KC3FRA 2019-05-04 07:19:59 +02:00
parent 544ce6c020
commit a76f07ca0e
3 changed files with 199 additions and 0 deletions

View file

@ -61,6 +61,18 @@ ircDDB/IRCDDB.a: force
.PHONY: install
install: all
ifeq ($(TARGET), opendv)
useradd --user-group -M --system opendv --shell /bin/false || true
# Add the opendv user to the audio group so that it can open audio
# devices when using the audio based drivers such as the Sound Card
# one. Maybe this should be moved to DStarRepeater instead ...
usermod --groups audio --append opendv || true
usermod --groups dialout --append opendv || true
usermod --groups gpio --append opendv || true
mkdir /var/log/opendv || true
chown opendv:opendv /var/log/opendv
endif
$(MAKE) -C Data install
$(MAKE) -C APRSTransmit install
$(MAKE) -C ircDDBGateway install