new content structure

This commit is contained in:
Dominic Reich 2023-11-18 17:53:21 +01:00
parent b8628056bb
commit 4aed20e8eb
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A
137 changed files with 0 additions and 66 deletions
content/posts
2020
1-how-to-get-an-amateur-radio-license-in-austria
10-error-with-signed-commits
11-keep-up-to-date-on-forked-repositories
12-operating-the-z-shell
13-create-your-own-dmrid-database-file
14-virtual-machine-on-big-sur-not-starting
15-forking-git-repositories
2-optimizing-png-images
3-hs-dual-hat-with-pistar-v4
4-aprs-with-hytera-pd785g-v9
5-get-dmrids-on-the-command-line
6-nextion-dmr-last-heard-dashboard
7-mountint-ext4-filesystem-on-macos-readonly
8-my-7inch-dmr-dashboard
9-change-the-bands-in-your-anytone-codeplug
2021
16-win10-grub2-and-uefi
17-running-n1mm-logger-on-linux
18-winlink-and-vara-on-linux
19-wordlist-generation
20-processes-accessing-mountpoints
2022-07-31-handy-tools-mmdvm
2022
21-site-updates
22-my-weather-station-with-weewx-and-netatmo
23-systemd-slow-reboot-and-shutdown-fixed
24-pfsense-restore-broken-config
25-systemd-flushing-the-dns-cache
26-raspberry-pi-4-64bit-dual-hat-hotspot-without-pi-star
27-mounting-disk-images-on-linux
28-using-nfs-on-a-raspberry-pi
29-vpn-tunnel-into-hamnet-on-fedora-36
30-winlink-on-linux-fix-invalid-handle-on-logfiles
31-hamnet-on-the-pfsense
32-changing-network-metrics-on-linux
33-change-git-submodule-url
2023
34-my-current-website-setup
35-tuxedo-notebook-driver-issues
36-an-attempt-to-operate-portable
37-gitea-updates

View file

@ -1,66 +0,0 @@
---
title: handy tools for MMDVM
summary: >
Some nice ideas and so...
date: 2022-07-31T13:12:39+02:00
#categories: [computerstuff]
tags: [linux,systemd,networking,manjaro,dns]
draft: true
---
#### the script
~~~bash
# file: "kill-mmdvm.sh"
#!/bin/bash
#udev/rules.d contains a rule file like:
#SUBSYSTEM=="tty", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", SYMLINK+="ttyGD77", TAG+="systemd", ENV{SYSTEMD_WANTS}="mmdvmhost.service"
#ACTION=="remove", SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="1fc9", ENV{ID_MODEL_ID}=="0094", RUN+="/etc/udev/kill-mmdvm.sh"
#
#mmdvmhost service stopping lasts about 1 minute to succeed, so kill is the option...
if [ "$ACTION" = "remove" ]
then
systemctl kill -s KILL mmdvmhost.service
fi
~~~
#### restarting/reloading udev rules without reboot
~~~console
# udevadm control --reload-rules && udevadm trigger
~~~
#### gd77 udev rules
~~~ini
# file: "/etc/udev/rules.d/99-gd77.rules"
# USB rules for GD-77
# Place this in /etc/udev/rules.d/ to let all users talk to the radios by USB.
#
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666"
# HIDAPI/libusb
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666"
# HIDAPI/hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666"
# HIDAPI/hiddev
## We need to unbind this device, otherwise LibUsb will fail to SetConfiguration() and ClaimInterface()
# For Bootloader (usbhid)
KERNEL=="hiddev*", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="0666", RUN+="/bin/bash -c 'ID=$(IFS=/; read -a array <<< %p; echo ${array[-3]}); echo $ID > /sys/bus/usb/drivers/usbhid/unbind'"
# OpenGD77
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0094", MODE="0666", GROUP="dialout", SYMLINK+="OpenGD77"
~~~
***
Sources:
* <https://gist.github.com/gru-github/cf7c121e6b0e441676fb3263ebe02193>
* <https://unix.stackexchange.com/questions/39370/how-to-reload-udev-rules-without-reboot>

Some files were not shown because too many files have changed in this diff Show more