new post (dmrhost on openbsd)

main
Dominic Reich 1 year ago
parent b26746b840
commit f820d67f72
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -1,13 +1,11 @@
+++ +++
# vim: ft=markdown title = 'DMRHost on a RaspberryPi 4 with OpenBSD'
title = 'DMRHost on OpenBSD on a Raspberry-Pi 4' summary = '''A rather quick demonstration of my recent test to install
summary = '' DMRHost on a Raspberry Pi 4 which is running OpenBSD 7.3'''
date = '2023-08-20T08:24:04+02:00' date = '2023-08-26T19:07:53+0200'
lastmod = '2023-08-20T09:15:14+0000' #lastmod = ''
categories = [ 'amateur-radio' ] categories = [ 'amateur-radio' ]
tags = [ 'hotspot', 'raspberry-pi', 'openbsd' ] tags = [ 'hotspot', 'raspberry-pi', 'mmdvm', 'dmr', 'openbsd' ]
draft = true
+++ +++
@ -142,6 +140,8 @@ Have a look at the `[Log]` section.
```bash ```bash
#!/bin/sh #!/bin/sh
# rc-script for DMRHost on OpenBSD 7.3
# Dominic Reich <https://oe7drt.com>
DMRHOST="/usr/local/bin/DMRHost" DMRHOST="/usr/local/bin/DMRHost"
MMDVM_INI="/home/mmdvm/MMDVM.ini" MMDVM_INI="/home/mmdvm/MMDVM.ini"
@ -160,14 +160,14 @@ case "$1" in
echo "${MMDVM_INI} is not readable... aborting!" echo "${MMDVM_INI} is not readable... aborting!"
exit 1 exit 1
fi fi
echo "Starting DMRHost..." echo -n "Starting DMRHost..."
${DOAS} ${DMRHOST} ${MMDVM_INI} & ${DOAS} ${DMRHOST} ${MMDVM_INI} &
echo $! > ${DMRHOST_PID} echo $! > ${DMRHOST_PID}
echo " done" echo " done"
;; ;;
"stop") "stop")
echo "Stopping DMRHost..." echo -n "Stopping DMRHost..."
if [ -f ${DMRHOST_PID} ] ; then if [ -f ${DMRHOST_PID} ] ; then
kill `cat ${DMRHOST_PID}` kill `cat ${DMRHOST_PID}`
rm -f ${DMRHOST_PID} rm -f ${DMRHOST_PID}
@ -178,7 +178,6 @@ case "$1" in
;; ;;
"restart") "restart")
echo "Restarting DMRHost..."
$0 stop $0 stop
sleep 2 sleep 2
$0 start $0 start
Loading…
Cancel
Save